lib/server.c: fix ipv6 support

This commit is contained in:
Enno Boland 2016-05-06 07:50:04 +08:00 committed by Andy Green
parent 5f4890b7ff
commit f522895234
2 changed files with 4 additions and 1 deletions

View file

@ -6,6 +6,9 @@ Fixes
1) OpenSSL version tests not needed on LibreSSL and BoringSSL
2) Fix IPV6 build breakage
v2.0.0
======

View file

@ -67,7 +67,7 @@ lws_context_init_server(struct lws_context_creation_info *info,
else
#endif
#ifdef LWS_USE_IPV6
if (LWS_IPV6_ENABLED(context))
if (LWS_IPV6_ENABLED(vhost->context))
sockfd = socket(AF_INET6, SOCK_STREAM, 0);
else
#endif