From 0818117a8f845aa50d438474156a430e3035364f Mon Sep 17 00:00:00 2001 From: Alex Thomassen Date: Mon, 18 Apr 2022 13:32:43 +0000 Subject: [PATCH] Fix: Resolve AAAA record from hostname --- LookingGlass.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LookingGlass.php b/LookingGlass.php index 043b651..5cb8c9f 100644 --- a/LookingGlass.php +++ b/LookingGlass.php @@ -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 '';