mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
Fix incorrect ping log (#4322)
This commit is contained in:
parent
bf1e3a3d5e
commit
25cb78796a
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ exports.ping = async (hostname, size = 56) => {
|
||||||
return await exports.pingAsync(hostname, false, size);
|
return await exports.pingAsync(hostname, false, size);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// If the host cannot be resolved, try again with ipv6
|
// If the host cannot be resolved, try again with ipv6
|
||||||
console.debug("ping", "IPv6 error message: " + e.message);
|
log.debug("ping", "IPv6 error message: " + e.message);
|
||||||
|
|
||||||
// As node-ping does not report a specific error for this, try again if it is an empty message with ipv6 no matter what.
|
// As node-ping does not report a specific error for this, try again if it is an empty message with ipv6 no matter what.
|
||||||
if (!e.message) {
|
if (!e.message) {
|
||||||
|
|
Loading…
Reference in a new issue