From 3fe34505332ee6f8a51188fcc2111f7721ade2c0 Mon Sep 17 00:00:00 2001 From: giacomo892 Date: Wed, 13 Oct 2021 08:29:55 +0200 Subject: [PATCH] Prioritize port passed from args Co-authored-by: Adam Stachowicz --- server/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.js b/server/server.js index 3e8ddd319..7dbd6155f 100644 --- a/server/server.js +++ b/server/server.js @@ -62,7 +62,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 = args.host || process.env.HOST; -const port = parseInt(process.env.PORT || args.port || 3001); +const port = parseInt(args.port || process.env.PORT || 3001); // SSL const sslKey = process.env.SSL_KEY || args["ssl-key"] || undefined;