Removed
Link Here
|
1 |
--- lib/server.c.orig 2016-11-23 13:04:24 UTC |
2 |
+++ lib/server.c |
3 |
@@ -110,7 +110,7 @@ lws_context_init_server(struct lws_conte |
4 |
if (LWS_IPV6_ENABLED(vhost)) { |
5 |
if (vhost->options & LWS_SERVER_OPTION_IPV6_V6ONLY_MODIFY) { |
6 |
int value = (vhost->options & LWS_SERVER_OPTION_IPV6_V6ONLY_VALUE) ? 1 : 0; |
7 |
- if (setsockopt(sockfd, SOL_IPV6, IPV6_V6ONLY, |
8 |
+ if (setsockopt(sockfd, IPPROTO_IPV6, IPV6_V6ONLY, |
9 |
(const void*)&value, sizeof(value)) < 0) { |
10 |
compatible_close(sockfd); |
11 |
return 1; |