mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
lib/server.c: fix ipv6 support
This commit is contained in:
parent
7731a3e575
commit
b6e2ad6b50
2 changed files with 4 additions and 1 deletions
|
@ -6,6 +6,9 @@ Fixes
|
||||||
|
|
||||||
1) OpenSSL version tests not needed on LibreSSL and BoringSSL
|
1) OpenSSL version tests not needed on LibreSSL and BoringSSL
|
||||||
|
|
||||||
|
2) Fix IPV6 build breakage
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
v2.0.0
|
v2.0.0
|
||||||
======
|
======
|
||||||
|
|
|
@ -67,7 +67,7 @@ lws_context_init_server(struct lws_context_creation_info *info,
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
#ifdef LWS_USE_IPV6
|
#ifdef LWS_USE_IPV6
|
||||||
if (LWS_IPV6_ENABLED(context))
|
if (LWS_IPV6_ENABLED(vhost->context))
|
||||||
sockfd = socket(AF_INET6, SOCK_STREAM, 0);
|
sockfd = socket(AF_INET6, SOCK_STREAM, 0);
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue