TT#89352 explicitly disable lws IPv6 for IPv4 binds

Change-Id: Ibb0defaaf05e5be2937e24e5d04de0647a652349
pull/1346/head
Richard Fuchs 4 years ago
parent 363f7c937d
commit 58829a4ecf

@ -900,6 +900,8 @@ int websocket_init(void) {
.protocols = websocket_protocols,
};
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";
if (!lws_create_vhost(websocket_context, vhost))
goto err;
@ -930,6 +932,8 @@ int websocket_init(void) {
// XXX cipher list, key password
};
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";
if (!lws_create_vhost(websocket_context, vhost))
goto err;

Loading…
Cancel
Save