From d733ec018e6698f45f17b53d19cc725e71eec279 Mon Sep 17 00:00:00 2001 From: giacomo892 Date: Tue, 12 Oct 2021 19:37:58 +0200 Subject: [PATCH] Prioritize host arg Otherwise launching the program with the --host argument does nothing --- server/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.js b/server/server.js index 67095ff5..3e8ddd31 100644 --- a/server/server.js +++ b/server/server.js @@ -61,7 +61,7 @@ console.info("Version: " + checkVersion.version); // If host is omitted, the server will accept connections on the unspecified IPv6 address (::) when IPv6 is available and the unspecified IPv4 address (0.0.0.0) otherwise. // Dual-stack support for (::) -const hostname = process.env.HOST || args.host; +const hostname = args.host || process.env.HOST; const port = parseInt(process.env.PORT || args.port || 3001); // SSL