mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-31 09:43:45 -04:00
[websocket] disable ipv6 in ws_init if disabled in config
This commit is contained in:
parent
9fcc3d2c01
commit
c7cab8ef6f
@ -381,6 +381,8 @@ websocket_init(void)
|
|||||||
memset(&info, 0, sizeof(info));
|
memset(&info, 0, sizeof(info));
|
||||||
info.port = websocket_port;
|
info.port = websocket_port;
|
||||||
info.protocols = protocols;
|
info.protocols = protocols;
|
||||||
|
if (!cfg_getbool(cfg_getsec(cfg, "general"), "ipv6"))
|
||||||
|
info.options |= LWS_SERVER_OPTION_DISABLE_IPV6;
|
||||||
info.gid = -1;
|
info.gid = -1;
|
||||||
info.uid = -1;
|
info.uid = -1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user