We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 355051d commit 2c600a2Copy full SHA for 2c600a2
lib/Cleantalk/Common/Helper.php
@@ -558,7 +558,7 @@ public static function ipResolve($ip)
558
$records = @dns_get_record($hostname, $record_type);
559
560
// If forward lookup fails, we can't verify
561
- if (!$records || !is_array($records)) {
+ if (empty($records)) {
562
return false;
563
}
564
@@ -575,7 +575,6 @@ public static function ipResolve($ip)
575
576
577
// Check if the original IP is in the list of IPs the hostname resolves to
578
- // For IPv6, normalize both for comparison
579
if ($ip_version === 'v6') {
580
$normalized_ip = self::ipV6Normalize($ip);
581
foreach ($forward_ips as $forward_ip) {
0 commit comments