Fix: Resolve AAAA record from hostname

This commit is contained in:
Alex Thomassen 2022-04-18 13:32:43 +00:00
parent 6f5395a092
commit 0818117a8f
No known key found for this signature in database
GPG key ID: 10BD786B5F6FF5DE

View file

@ -110,7 +110,7 @@ class LookingGlass
if ($type == 'ipv4' && isset(dns_get_record($host, DNS_A)[0]['ip'])) {
return $host;
}
if ($type == 'ipv6' && isset(dns_get_record($host, DNS_AAAA)[0]['ip'])) {
if ($type == 'ipv6' && isset(dns_get_record($host, DNS_AAAA)[0]['ipv6'])) {
return $host;
}
return '';