diff options
author | erdgeist <> | 2009-06-16 12:17:53 +0000 |
---|---|---|
committer | erdgeist <> | 2009-06-16 12:17:53 +0000 |
commit | 2a94892890074e1090eb60b2e1b3273df9c7d899 (patch) | |
tree | d9f4735b35b2294195f446c64b1968bc1309aa41 /opentracker.c | |
parent | 6c19143bc1279889ded58df7ee4ab9f452d58bfa (diff) |
Display v4 addresses in v4 mode nicer
Diffstat (limited to 'opentracker.c')
-rw-r--r-- | opentracker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opentracker.c b/opentracker.c index 6699164..e2e48f2 100644 --- a/opentracker.c +++ b/opentracker.c | |||
@@ -257,7 +257,7 @@ static int64_t ot_try_bind( ot_ip6 ip, uint16_t port, PROTO_FLAG proto ) { | |||
257 | char *protos[] = {"TCP","UDP","UDP mcast"}; | 257 | char *protos[] = {"TCP","UDP","UDP mcast"}; |
258 | char _debug[512]; | 258 | char _debug[512]; |
259 | int off = snprintf( _debug, sizeof(_debug), "Binding socket type %s to address [", protos[proto] ); | 259 | int off = snprintf( _debug, sizeof(_debug), "Binding socket type %s to address [", protos[proto] ); |
260 | off += fmt_ip6( _debug+off, ip); | 260 | off += fmt_ip6c( _debug+off, ip); |
261 | snprintf( _debug + off, sizeof(_debug)-off, "]:%d...", port); | 261 | snprintf( _debug + off, sizeof(_debug)-off, "]:%d...", port); |
262 | fputs( _debug, stderr ); | 262 | fputs( _debug, stderr ); |
263 | #endif | 263 | #endif |