From 6048bc5dfc253f6cbd411170e6bf035ee1124dad Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Tue, 14 Feb 2023 00:46:22 +0800 Subject: [PATCH] Revert #2083's change of healthcheck.js --- extra/healthcheck.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extra/healthcheck.js b/extra/healthcheck.js index 40691418c..9b95cf26a 100644 --- a/extra/healthcheck.js +++ b/extra/healthcheck.js @@ -19,17 +19,17 @@ if (sslKey && sslCert) { // 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 (::) -let hostname = process.env.UPTIME_KUMA_SERVICE_HOST || process.env.UPTIME_KUMA_HOST || "::"; +let hostname = process.env.UPTIME_KUMA_HOST; // Also read HOST if not *BSD, as HOST is a system environment variable in FreeBSD if (!hostname && !FBSD) { hostname = process.env.HOST; } -const port = parseInt(process.env.UPTIME_KUMA_SERVICE_PORT || process.env.UPTIME_KUMA_PORT || process.env.PORT || 3001); +const port = parseInt(process.env.UPTIME_KUMA_PORT || process.env.PORT || 3001); let options = { - host: hostname, + host: hostname || "127.0.0.1", port: port, timeout: 28 * 1000, };