From 7c3279a02891a4fa78f5345b745eee4ee5379100 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Wed, 3 Apr 2024 22:50:01 +0200 Subject: [PATCH] Allow binding to v4 and v6 addresses always --- opentracker.c | 10 ---------- 1 file changed, 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 ) { static int64_t ot_try_bind( ot_ip6 ip, uint16_t port, PROTO_FLAG proto ) { int64 sock = proto == FLAG_TCP ? socket_tcp6( ) : socket_udp6( ); -#ifndef WANT_V6 - if( !ip6_isv4mapped(ip) ) { - exerr( "V4 Tracker is V4 only!" ); - } -#else - if( ip6_isv4mapped(ip) ) { - exerr( "V6 Tracker is V6 only!" ); - } -#endif - #ifdef _DEBUG { char *protos[] = {"TCP","UDP","UDP mcast"};