diff --git a/server/model/monitor.js b/server/model/monitor.js index 86f53f3b3..40ca4e384 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -635,7 +635,7 @@ class Monitor extends BeanModel { bean.status = UP; } else if (this.type === "ping") { - bean.ping = await ping(this.hostname, this.packetSize); + bean.ping = await ping(this.hostname, this.ping_count, "", this.ping_numeric, this.packetSize, this.ping_deadline, this.ping_timeout); bean.msg = ""; bean.status = UP; } else if (this.type === "push") { // Type: Push @@ -707,7 +707,7 @@ class Monitor extends BeanModel { bean.msg = res.data.response.servers[0].name; try { - bean.ping = await ping(this.hostname, this.packetSize); + bean.ping = await ping(this.hostname, PING_COUNT_DEFAULT, "", true, this.packetSize, PING_DEADLINE_DEFAULT, PING_TIMEOUT_DEFAULT); } catch (_) { } } else { throw new Error("Server not found on Steam");