skip check when no ipv4/ipv6

(cherry picked from commit c478ace8bd)
This commit is contained in:
Girish Ramakrishnan
2025-02-02 08:34:08 +01:00
parent 4dec688e0b
commit 979e91a2eb

View File

@@ -416,7 +416,8 @@ async function checkPtr6(mailFqdn) {
return ptr;
}
if (ip === null) {
ptr.errorMessage = 'Server has no IPv6';
ptr.status = true;
ptr.expected = 'Check skipped, server has no IPv6';
return ptr;
}
@@ -469,7 +470,8 @@ async function checkPtr4(mailFqdn) {
return ptr;
}
if (ip === null) {
ptr.errorMessage = 'Server has no IPv4';
ptr.status = true;
ptr.expected = 'Check skipped, server has no IPv4';
return ptr;
}