From b6e2ad6b5091c72a4aa8cee4c686e9916c2fadd6 Mon Sep 17 00:00:00 2001
From: Enno Boland <g@s01.de>
Date: Thu, 5 May 2016 22:09:54 +0200
Subject: [PATCH] lib/server.c: fix ipv6 support

---
 changelog    | 3 +++
 lib/server.c | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/changelog b/changelog
index f36d20ff..8e88d36d 100644
--- a/changelog
+++ b/changelog
@@ -6,6 +6,9 @@ Fixes
 
 1) OpenSSL version tests not needed on LibreSSL and BoringSSL
 
+2) Fix IPV6 build breakage
+
+
 
 v2.0.0
 ======
diff --git a/lib/server.c b/lib/server.c
index 759b5b4c..7d989cbc 100644
--- a/lib/server.c
+++ b/lib/server.c
@@ -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
-- 
GitLab