From 7d9235156872c290c309bc3c07cc8ee21df455fc Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Thu, 5 Jan 2023 19:30:55 +0800 Subject: [PATCH] Match previous settings --- server/util-server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/util-server.js b/server/util-server.js index 99c9c932..6b9ed339 100644 --- a/server/util-server.js +++ b/server/util-server.js @@ -102,7 +102,8 @@ exports.pingAsync = function (hostname, ipv6 = false) { return new Promise((resolve, reject) => { ping.promise.probe(hostname, { v6: ipv6, - min_reply: 3 + min_reply: 1, + timeout: 10000, }).then((res) => { // If ping failed, it will set field to unknown if (res.alive) {