mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-01 18:21:31 -04:00
[web] Fix libwebsocket 2.0 (Debian Buster) incompability added in commit 1a56255
This commit is contained in:
parent
e837de91e8
commit
28f8ff5253
@ -487,10 +487,15 @@ websocket_init(void)
|
|||||||
info.port = websocket_port;
|
info.port = websocket_port;
|
||||||
info.iface = websocket_interface;
|
info.iface = websocket_interface;
|
||||||
info.protocols = protocols;
|
info.protocols = protocols;
|
||||||
|
#ifdef LWS_SERVER_OPTION_IPV6_V6ONLY_MODIFY // Debian Buster's libwebsockets does not have this flag
|
||||||
if (cfg_getbool(cfg_getsec(cfg, "general"), "ipv6"))
|
if (cfg_getbool(cfg_getsec(cfg, "general"), "ipv6"))
|
||||||
info.options |= LWS_SERVER_OPTION_IPV6_V6ONLY_MODIFY; // Assures dual stack is enabled by switching off IPV6_V6ONLY
|
info.options |= LWS_SERVER_OPTION_IPV6_V6ONLY_MODIFY; // Assures dual stack is enabled by switching off IPV6_V6ONLY
|
||||||
else
|
else
|
||||||
info.options |= LWS_SERVER_OPTION_DISABLE_IPV6;
|
info.options |= LWS_SERVER_OPTION_DISABLE_IPV6;
|
||||||
|
#else
|
||||||
|
if (!cfg_getbool(cfg_getsec(cfg, "general"), "ipv6"))
|
||||||
|
info.options |= LWS_SERVER_OPTION_DISABLE_IPV6;
|
||||||
|
#endif
|
||||||
info.gid = -1;
|
info.gid = -1;
|
||||||
info.uid = -1;
|
info.uid = -1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user