mirror of
https://github.com/danog/dns.git
synced 2025-01-22 21:41:11 +01:00
Fix cache TTL
This commit is contained in:
parent
9f2820bb63
commit
4ef49e8544
@ -667,9 +667,9 @@ REGEX;
|
||||
$promisor->fail($error);
|
||||
} else {
|
||||
foreach ($result as $type => $records) {
|
||||
$minttl = INF;
|
||||
$minttl = \PHP_INT_MAX;
|
||||
foreach ($records as list( , , $ttl)) {
|
||||
if ($ttl && $minttl > $ttl) {
|
||||
if ($ttl < $minttl) {
|
||||
$minttl = $ttl;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user