mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-19 04:34:33 -05:00
Fix #2618
This commit is contained in:
parent
e675316635
commit
27585d0812
@ -103,7 +103,7 @@ exports.pingAsync = function (hostname, ipv6 = false) {
|
|||||||
ping.promise.probe(hostname, {
|
ping.promise.probe(hostname, {
|
||||||
v6: ipv6,
|
v6: ipv6,
|
||||||
min_reply: 1,
|
min_reply: 1,
|
||||||
timeout: 10,
|
deadline: 10,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
// If ping failed, it will set field to unknown
|
// If ping failed, it will set field to unknown
|
||||||
if (res.alive) {
|
if (res.alive) {
|
||||||
|
Loading…
Reference in New Issue
Block a user