@ -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 ,
} ;