This commit is contained in:
Louis Lam 2023-01-17 01:21:01 +08:00
parent e675316635
commit 27585d0812

View File

@ -103,7 +103,7 @@ exports.pingAsync = function (hostname, ipv6 = false) {
ping.promise.probe(hostname, {
v6: ipv6,
min_reply: 1,
timeout: 10,
deadline: 10,
}).then((res) => {
// If ping failed, it will set field to unknown
if (res.alive) {