0
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-12-01 07:20:46 +01:00

Prioritize host arg

Otherwise launching the program with the --host argument does nothing
This commit is contained in:
giacomo892 2021-10-12 19:37:58 +02:00 committed by GitHub
parent dbc87d8ab3
commit d733ec018e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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