From e3ddf1269368db5f476e0980e9b5127c7034d9fd Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Wed, 6 Mar 2019 06:29:19 +0100 Subject: Add fix to libwebsocket to disable V6ONLY. This was enabled by default on some systems (e.g. Windows). --- thirdparty/libwebsockets/lib/plat/windows/windows-sockets.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'thirdparty/libwebsockets/lib/plat/windows') diff --git a/thirdparty/libwebsockets/lib/plat/windows/windows-sockets.c b/thirdparty/libwebsockets/lib/plat/windows/windows-sockets.c index bf0935057a..62a0a49846 100644 --- a/thirdparty/libwebsockets/lib/plat/windows/windows-sockets.c +++ b/thirdparty/libwebsockets/lib/plat/windows/windows-sockets.c @@ -56,6 +56,11 @@ lws_plat_set_socket_options(struct lws_vhost *vhost, lws_sockfd_type fd, struct protoent *tcp_proto; #endif +#ifdef LWS_WITH_IPV6 + optval = 0; + setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, (const void*)&optval, optlen); +#endif + if (vhost->ka_time) { /* enable keepalive on this socket */ optval = 1; -- cgit v1.2.3