From 2dd08b7b33b81feacd412595130cd5bafd3f9de5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Tue, 27 Jun 2023 18:42:13 +0200 Subject: [PATCH] webServer: Listen on all interfaces Listen on all network interfaces for incoming connections. Previous soup_server_listen_local() only listens on local loopback device preventing access from network, so use listen_all() instead to allow access through any interface. Fixes #362 --- src/webServer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webServer.js b/src/webServer.js index 2098dda7..9ba0e58b 100644 --- a/src/webServer.js +++ b/src/webServer.js @@ -48,7 +48,7 @@ class ClapperWebServer extends Soup.Server this.add_websocket_handler('/websocket', null, null, this._onWsConnection.bind(this)); try { - isListening = this.listen_local(this.listeningPort, Soup.ServerListenOptions.IPV4_ONLY); + isListening = this.listen_all(this.listeningPort, Soup.ServerListenOptions.IPV4_ONLY); } catch(err) { debug(err);