mirror of
https://github.com/hybula/lookingglass.git
synced 2024-09-21 05:20:06 +00:00
Fix: Resolve AAAA record from hostname
This commit is contained in:
parent
6f5395a092
commit
0818117a8f
|
@ -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 '';
|
||||
|
|
Loading…
Reference in a new issue