[core] setsockopt IPV6_V6ONLY if server.v4mapped
always setsockopt IPV6_V6ONLY on IPv6 addrs if server.v4mapped is configured
This commit is contained in:
parent
b9bdca9b8a
commit
f8369910ff
|
@ -248,7 +248,7 @@ static int network_server_init(server *srv, network_socket_config *s, buffer *ho
|
|||
}
|
||||
}
|
||||
if (AF_INET6 == family && -1 != s->v4mapped) { /*(configured; -1 is unset)*/
|
||||
set_v6only = (s->v4mapped ? -1 : 0);
|
||||
set_v6only = (s->v4mapped ? -1 : 1);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue