diff --git a/daemon/websocket.c b/daemon/websocket.c index 35165b7df..b0d07aec2 100644 --- a/daemon/websocket.c +++ b/daemon/websocket.c @@ -949,6 +949,8 @@ int websocket_init(void) { .protocols = websocket_protocols, }; vhost->vhost_name = vhost->iface; + if (ep.address.family->af == AF_INET && !is_addr_unspecified(&ep.address)) + vhost->options |= LWS_SERVER_OPTION_DISABLE_IPV6; err = "LWS failed to create vhost"; if (!lws_create_vhost(websocket_context, vhost)) goto err;