diff --git a/server/ping-lite.js b/server/ping-lite.js index b2d6405ad..0075e80bd 100644 --- a/server/ping-lite.js +++ b/server/ping-lite.js @@ -48,7 +48,7 @@ function Ping(host, options) { this._args = (options.args) ? options.args : [ "-n", "-t", timeout, "-c", "1", host ]; this._regmatch = /=([0-9.]+?) ms/; - } else if (util.FBSD) { + } else if (util.BSD) { this._bin = "/sbin/ping"; const defaultArgs = [ "-n", "-t", timeout, "-c", "1", host ]; diff --git a/server/util-server.js b/server/util-server.js index 68f59f67f..35aeeb500 100644 --- a/server/util-server.js +++ b/server/util-server.js @@ -15,7 +15,7 @@ const nodeJsUtil = require("util"); exports.WIN = /^win/.test(process.platform); exports.LIN = /^linux/.test(process.platform); exports.MAC = /^darwin/.test(process.platform); -exports.FBSD = /^freebsd/.test(process.platform); +exports.BSD = /bsd$/.test(process.platform); /** * Init or reset JWT secret