Fix IPv4 connectivity when IPv6 is enabled

This commit is contained in:
Ronald Kinard 2015-02-05 00:32:54 -06:00
parent 3d498fe894
commit ae05613460

View file

@ -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