changeset 2298:59600cb9342f

Apparently we need to preserve the global lws_context_creation_info.options when constructing the vhost options value.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 08 Jul 2020 02:28:45 +0300
parents f59bb8588686
children e9feaf5a040c
files mapsearch.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mapsearch.c	Wed Jul 01 14:34:32 2020 +0300
+++ b/mapsearch.c	Wed Jul 08 02:28:45 2020 +0300
@@ -1849,12 +1849,13 @@
     // Create the LWS context(s)
     MAPListenerCtx *ctx = optListenTo[0];
     struct lws_context_creation_info info;
+    int info_options;
     memset(&info, 0, sizeof(info));
 
     info.gid = optGID;
     info.uid = optUID;
     info.max_http_header_pool = 16;
-    info.options =
+    info_options = info.options =
         LWS_SERVER_OPTION_EXPLICIT_VHOSTS |
         LWS_SERVER_OPTION_VALIDATE_UTF8 |
         LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT
@@ -1885,7 +1886,7 @@
 
         info.port = ctx->port;
         info.iface = ctx->interface;
-        info.options = 0;
+        info.options = info_options;
 
         switch (ctx->ipvMode)
         {