|
|
@ -900,6 +900,8 @@ int websocket_init(void) {
|
|
|
|
.protocols = websocket_protocols,
|
|
|
|
.protocols = websocket_protocols,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
vhost->vhost_name = vhost->iface;
|
|
|
|
vhost->vhost_name = vhost->iface;
|
|
|
|
|
|
|
|
if (ep.address.family->af == AF_INET)
|
|
|
|
|
|
|
|
vhost->options |= LWS_SERVER_OPTION_DISABLE_IPV6;
|
|
|
|
err = "LWS failed to create vhost";
|
|
|
|
err = "LWS failed to create vhost";
|
|
|
|
if (!lws_create_vhost(websocket_context, vhost))
|
|
|
|
if (!lws_create_vhost(websocket_context, vhost))
|
|
|
|
goto err;
|
|
|
|
goto err;
|
|
|
@ -930,6 +932,8 @@ int websocket_init(void) {
|
|
|
|
// XXX cipher list, key password
|
|
|
|
// XXX cipher list, key password
|
|
|
|
};
|
|
|
|
};
|
|
|
|
vhost->vhost_name = vhost->iface;
|
|
|
|
vhost->vhost_name = vhost->iface;
|
|
|
|
|
|
|
|
if (ep.address.family->af == AF_INET)
|
|
|
|
|
|
|
|
vhost->options |= LWS_SERVER_OPTION_DISABLE_IPV6;
|
|
|
|
err = "LWS failed to create vhost";
|
|
|
|
err = "LWS failed to create vhost";
|
|
|
|
if (!lws_create_vhost(websocket_context, vhost))
|
|
|
|
if (!lws_create_vhost(websocket_context, vhost))
|
|
|
|
goto err;
|
|
|
|
goto err;
|
|
|
|