mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Fix setsockopt so that setting the IPV6ONLY flag really works.
This commit is contained in:
parent
fa3f044257
commit
0d6741fb23
1 changed files with 1 additions and 1 deletions
|
@ -934,7 +934,7 @@ int NET_IP6Socket( char *net_interface, int port, struct sockaddr_in6 *bindto, i
|
||||||
|
|
||||||
#ifdef IPV6_V6ONLY
|
#ifdef IPV6_V6ONLY
|
||||||
{
|
{
|
||||||
int i;
|
int i = 1;
|
||||||
|
|
||||||
// ipv4 addresses should not be allowed to connect via this socket.
|
// ipv4 addresses should not be allowed to connect via this socket.
|
||||||
if(setsockopt(newsocket, IPPROTO_IPV6, IPV6_V6ONLY, (char *) &i, sizeof(i)) == SOCKET_ERROR)
|
if(setsockopt(newsocket, IPPROTO_IPV6, IPV6_V6ONLY, (char *) &i, sizeof(i)) == SOCKET_ERROR)
|
||||||
|
|
Loading…
Reference in a new issue