- Add patch missig in r427365
This commit is contained in:
parent
729cdb99aa
commit
43dc8cc523
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=427366
1 changed files with 11 additions and 0 deletions
11
net/libwebsockets/files/patch-lib_server.c
Normal file
11
net/libwebsockets/files/patch-lib_server.c
Normal file
|
@ -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;
|
Loading…
Reference in a new issue