Keep FBSD, BSD for ping only

This commit is contained in:
Louis
2022-01-12 01:44:01 +08:00
parent 0f822d3b2a
commit ed64853125
3 changed files with 6 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
/*
* This script should be run after a period of time (180s), because the server may need some time to prepare.
*/
const { BSD } = require("../server/util-server");
const { FBSD } = require("../server/util-server");
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
@@ -21,7 +21,7 @@ if (sslKey && sslCert) {
let hostname = process.env.UPTIME_KUMA_HOST;
// Also read HOST if not *BSD, as HOST is a system environment variable in FreeBSD
if (!hostname && !BSD) {
if (!hostname && !FBSD) {
hostname = process.env.HOST;
}