MT#59661 fix libwebsockets IPv4 binding

This was fixed in later versions via 6d0eba93, but it's too large of a
commit (and part of a series) to backport. Fix IPv4 bindings separately
here.

Change-Id: I632971c3a7f2aa65709c5ebb58ef02cf0a45e05a
mr9.5.9
Richard Fuchs 2 years ago
parent f2788c4865
commit 3f91b9f408

@ -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;

Loading…
Cancel
Save