aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-06-22 23:32:11 +0000
committerthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-06-22 23:32:11 +0000
commit6c1d89f1fb44b824439f9fa86ab9f736d260a984 (patch)
tree4f763486ef42d340d93514f3fe10ca8a5dc73b09
parent78cdd3dbb4a0ccdf2df0d6ab070be1f00bf3955b (diff)
downloadioquake3-aero-6c1d89f1fb44b824439f9fa86ab9f736d260a984.tar.gz
ioquake3-aero-6c1d89f1fb44b824439f9fa86ab9f736d260a984.zip
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
-rw-r--r--code/qcommon/net_ip.c2
1 files changed, 1 insertions, 1 deletions
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)