From 0d6741fb23eac580078160d370611490dd30d371 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Mon, 22 Jun 2009 23:32:11 +0000 Subject: [PATCH] Fix setsockopt so that setting the IPV6ONLY flag really works. --- code/qcommon/net_ip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/qcommon/net_ip.c b/code/qcommon/net_ip.c index ea1a0b3c..06bed4b2 100644 --- a/code/qcommon/net_ip.c +++ b/code/qcommon/net_ip.c @@ -934,7 +934,7 @@ int NET_IP6Socket( char *net_interface, int port, struct sockaddr_in6 *bindto, i #ifdef IPV6_V6ONLY { - int i; + int i = 1; // ipv4 addresses should not be allowed to connect via this socket. if(setsockopt(newsocket, IPPROTO_IPV6, IPV6_V6ONLY, (char *) &i, sizeof(i)) == SOCKET_ERROR)