summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2024-04-03 22:50:01 +0200
committerDirk Engling <erdgeist@erdgeist.org>2024-04-03 22:50:01 +0200
commit7c3279a02891a4fa78f5345b745eee4ee5379100 (patch)
tree688438c77aad50e46d5ac07cdd80337d49b37d8e
parent2afc4893bf802700a1decfff57673cefc861c7e7 (diff)
Allow binding to v4 and v6 addresses always
-rw-r--r--opentracker.c10
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 ) {
331static int64_t ot_try_bind( ot_ip6 ip, uint16_t port, PROTO_FLAG proto ) { 331static 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"};