Fix incorrect ping log (#4322)

This commit is contained in:
Ben Scobie 2024-01-05 12:43:03 +00:00 committed by GitHub
parent bf1e3a3d5e
commit 25cb78796a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -128,7 +128,7 @@ exports.ping = async (hostname, size = 56) => {
return await exports.pingAsync(hostname, false, size);
} catch (e) {
// 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.
if (!e.message) {