mirror of
https://github.com/rekryt/iplist.git
synced 2025-10-12 16:39:35 +03:00
fix: prevent log from excessive redirects when resolving AAAA records
This commit is contained in:
@@ -69,9 +69,11 @@ class DNSHelper {
|
||||
array_map(fn(DnsRecord $record) => $record->getValue(), $dnsResolver->resolve($domain, DnsRecord::AAAA))
|
||||
);
|
||||
} catch (Throwable $e) {
|
||||
if (!str_starts_with($e->getMessage(), 'Giving up resolution')) {
|
||||
App::getLogger()->error($e->getMessage(), [$server]);
|
||||
}
|
||||
}
|
||||
}
|
||||
App::getLogger()->debug('resolve: ' . $domain, [count($ipv4), count($ipv6)]);
|
||||
return [$ipv4, $ipv6];
|
||||
}
|
||||
|
Reference in New Issue
Block a user