1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Add fix to libwebsocket to disable V6ONLY.

This was enabled by default on some systems (e.g. Windows).
This commit is contained in:
Fabio Alessandrelli
2019-03-06 06:29:19 +01:00
parent 90210c4862
commit e3ddf12693
4 changed files with 44 additions and 0 deletions

View File

@@ -73,6 +73,11 @@ lws_plat_set_socket_options(struct lws_vhost *vhost, int fd, int unix_skt)
int optval = 1;
socklen_t optlen = sizeof(optval);
#ifdef LWS_WITH_IPV6
optval = 0;
setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, (const void*)&optval, optlen);
#endif
#if defined(__APPLE__) || \
defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || \
defined(__NetBSD__) || \