mirror of
https://github.com/hybula/lookingglass.git
synced 2024-09-21 05:20:06 +00:00
Merge pull request #2 from Decicus/at/traceroute6-hostnames
Fix: Resolve AAAA record from hostname
This commit is contained in:
commit
d7adcfae3f
|
@ -110,7 +110,7 @@ class LookingGlass
|
||||||
if ($type == 'ipv4' && isset(dns_get_record($host, DNS_A)[0]['ip'])) {
|
if ($type == 'ipv4' && isset(dns_get_record($host, DNS_A)[0]['ip'])) {
|
||||||
return $host;
|
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 $host;
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
|
|
Loading…
Reference in a new issue