Fix setsockopt so that setting the IPV6ONLY flag really works.

This commit is contained in:
Thilo Schulz 2009-06-22 23:32:11 +00:00
parent fa3f044257
commit 0d6741fb23
1 changed files with 1 additions and 1 deletions

View File

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