From ae056134608632aeff7a1427ef1827403b9b0d14 Mon Sep 17 00:00:00 2001 From: Ronald Kinard Date: Thu, 5 Feb 2015 00:32:54 -0600 Subject: [PATCH 1/2] Fix IPv4 connectivity when IPv6 is enabled --- src/i_tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i_tcp.c b/src/i_tcp.c index df7b3cf2..6cfc8c7c 100644 --- a/src/i_tcp.c +++ b/src/i_tcp.c @@ -690,7 +690,7 @@ static void SOCK_Send(void) if (clientaddress[doomcom->remotenode].any.sa_family == AF_INET) d = d4; #ifdef HAVE_IPV6 - if (clientaddress[doomcom->remotenode].any.sa_family == AF_INET6) + else if (clientaddress[doomcom->remotenode].any.sa_family == AF_INET6) d = d6; #endif else From 062a746fdd8677643cb16ac9bbd25b7f3713263f Mon Sep 17 00:00:00 2001 From: Ronald Kinard Date: Thu, 5 Feb 2015 15:36:07 -0600 Subject: [PATCH 2/2] Further fix IPv4 when IPv6 is available --- src/i_tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i_tcp.c b/src/i_tcp.c index 6cfc8c7c..ba2f814e 100644 --- a/src/i_tcp.c +++ b/src/i_tcp.c @@ -651,7 +651,7 @@ static void SOCK_Send(void) if (broadcastaddress[i].any.sa_family == AF_INET) d = d4; #ifdef HAVE_IPV6 - if (broadcastaddress[i].any.sa_family == AF_INET6) + else if (broadcastaddress[i].any.sa_family == AF_INET6) d = d6; #endif else