[core] setsockopt IPV6_V6ONLY if server.v4mapped

always setsockopt IPV6_V6ONLY on IPv6 addrs if server.v4mapped
is configured
This commit is contained in:
Glenn Strauss 2020-12-02 17:46:21 -05:00
parent b9bdca9b8a
commit f8369910ff
1 changed files with 1 additions and 1 deletions

View File

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