Update dns_diagnostics.php

master
André Peters 2020-08-13 14:09:13 +02:00 committed by GitHub
parent 1c8cca8187
commit 107e619893
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ foreach ($records as &$record) {
} }
else { else {
$currents = dns_get_record($record[0], $record_types[$record[1]]); $currents = dns_get_record($record[0], $record_types[$record[1]]);
if ($record[0] == $mailcow_hostname && ($record[1] == "A" | $record[1] == "AAAA")) { if ($record[0] == $mailcow_hostname && ($record[1] == "A" || $record[1] == "AAAA")) {
if (!empty(dns_get_record($record[0], DNS_CNAME))) { if (!empty(dns_get_record($record[0], DNS_CNAME))) {
$currents[0]['ip'] = state_missing . ' <b>(CNAME)</b>'; $currents[0]['ip'] = state_missing . ' <b>(CNAME)</b>';
$currents[0]['ipv6'] = state_missing . ' <b>(CNAME)</b>'; $currents[0]['ipv6'] = state_missing . ' <b>(CNAME)</b>';