From ef7570777d752cd63e98c00efb043d760e011b0a Mon Sep 17 00:00:00 2001 From: Fastidious Date: Thu, 15 Jul 2021 06:57:22 -0400 Subject: [PATCH] Binding web address Adding the ability to change the binding address for the web server (0.0.0.0, open to everyone, or 127.0.0.1, for example, for proxying). --- src/lib/Server.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/Server.js b/src/lib/Server.js index cf6b26e..6f157c5 100644 --- a/src/lib/Server.js +++ b/src/lib/Server.js @@ -14,6 +14,7 @@ const { PORT, RELEASE, PASSWORD, + WEBHOST, } = require('../config'); module.exports = class Server { @@ -130,8 +131,8 @@ module.exports = class Server { return WireGuard.updateClientAddress({ clientId, address }); })) - .listen(PORT, () => { - debug(`Listening on http://0.0.0.0:${PORT}`); + .listen(PORT,WEBHOST, () => { + debug(`Listening on http://${WEBHOST}:${PORT}`); }); }