diff options
| -rw-r--r-- | opentracker.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/opentracker.c b/opentracker.c index ff2409c..78cafc3 100644 --- a/opentracker.c +++ b/opentracker.c | |||
| @@ -331,16 +331,6 @@ static void * server_mainloop( void * args ) { | |||
| 331 | static int64_t ot_try_bind( ot_ip6 ip, uint16_t port, PROTO_FLAG proto ) { | 331 | static int64_t ot_try_bind( ot_ip6 ip, uint16_t port, PROTO_FLAG proto ) { |
| 332 | int64 sock = proto == FLAG_TCP ? socket_tcp6( ) : socket_udp6( ); | 332 | int64 sock = proto == FLAG_TCP ? socket_tcp6( ) : socket_udp6( ); |
| 333 | 333 | ||
| 334 | #ifndef WANT_V6 | ||
| 335 | if( !ip6_isv4mapped(ip) ) { | ||
| 336 | exerr( "V4 Tracker is V4 only!" ); | ||
| 337 | } | ||
| 338 | #else | ||
| 339 | if( ip6_isv4mapped(ip) ) { | ||
| 340 | exerr( "V6 Tracker is V6 only!" ); | ||
| 341 | } | ||
| 342 | #endif | ||
| 343 | |||
| 344 | #ifdef _DEBUG | 334 | #ifdef _DEBUG |
| 345 | { | 335 | { |
| 346 | char *protos[] = {"TCP","UDP","UDP mcast"}; | 336 | char *protos[] = {"TCP","UDP","UDP mcast"}; |
