From 43dc8cc52302a8cfbc76aa7da23b338c128e8248 Mon Sep 17 00:00:00 2001 From: Li-Wen Hsu Date: Tue, 29 Nov 2016 07:38:47 +0000 Subject: [PATCH] - Add patch missig in r427365 --- net/libwebsockets/files/patch-lib_server.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 net/libwebsockets/files/patch-lib_server.c diff --git a/net/libwebsockets/files/patch-lib_server.c b/net/libwebsockets/files/patch-lib_server.c new file mode 100644 index 000000000000..5ccf6c54c6c9 --- /dev/null +++ b/net/libwebsockets/files/patch-lib_server.c @@ -0,0 +1,11 @@ +--- lib/server.c.orig 2016-11-23 13:04:24 UTC ++++ lib/server.c +@@ -110,7 +110,7 @@ lws_context_init_server(struct lws_conte + if (LWS_IPV6_ENABLED(vhost)) { + if (vhost->options & LWS_SERVER_OPTION_IPV6_V6ONLY_MODIFY) { + int value = (vhost->options & LWS_SERVER_OPTION_IPV6_V6ONLY_VALUE) ? 1 : 0; +- if (setsockopt(sockfd, SOL_IPV6, IPV6_V6ONLY, ++ if (setsockopt(sockfd, IPPROTO_IPV6, IPV6_V6ONLY, + (const void*)&value, sizeof(value)) < 0) { + compatible_close(sockfd); + return 1;