Browse Source

[core] setsockopt IPV6_V6ONLY if server.v4mapped

always setsockopt IPV6_V6ONLY on IPv6 addrs if server.v4mapped
is configured
master
Glenn Strauss 1 year ago
parent
commit
f8369910ff
  1. 2
      src/network.c

2
src/network.c

@ -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…
Cancel
Save