Although the test apps reuse the context info directly and so inherit the
flag state there when creating vhosts, users might generate a fresh info
without the flag for vhost creation. So just go by what was given at
context creation time.
* for a protocol get it enabled.
*/
- if (info->options & LWS_SERVER_OPTION_EXPLICIT_VHOSTS)
+ if (context->options & LWS_SERVER_OPTION_EXPLICIT_VHOSTS)
f = 0;
(void)f;
#ifdef LWS_WITH_PLUGINS
#ifdef LWS_WITH_PLUGINS
(context->plugin_list) ||
#endif
- info->options & LWS_SERVER_OPTION_EXPLICIT_VHOSTS)
+ context->options & LWS_SERVER_OPTION_EXPLICIT_VHOSTS)
vh->protocols = lwsp;
else {
vh->protocols = info->protocols;