From 6c1d89f1fb44b824439f9fa86ab9f736d260a984 Mon Sep 17 00:00:00 2001 From: thilo Date: Mon, 22 Jun 2009 23:32:11 +0000 Subject: Fix setsockopt so that setting the IPV6ONLY flag really works. git-svn-id: svn://svn.icculus.org/quake3/trunk@1575 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/qcommon/net_ip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'code/qcommon') diff --git a/code/qcommon/net_ip.c b/code/qcommon/net_ip.c index ea1a0b3..06bed4b 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) -- cgit v1.2.3