Browse Source

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
(cherry picked from commit 3f91b9f408)
mr9.5.8
Richard Fuchs 2 years ago
parent
commit
9f1a8cfb3a
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      daemon/websocket.c

+ 2
- 0
daemon/websocket.c View File

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