Merge pull request #2 from Decicus/at/traceroute6-hostnames

Fix: Resolve AAAA record from hostname
This commit is contained in:
Tamer 2022-04-19 09:35:39 +02:00 committed by GitHub
commit d7adcfae3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 '';