mirror of
https://github.com/danog/dns.git
synced 2024-12-02 09:27:55 +01:00
Merge branch 'master' into amp_v2
This commit is contained in:
commit
08ada39e3b
@ -659,9 +659,9 @@ class DefaultResolver implements Resolver {
|
|||||||
$deferred->fail($error);
|
$deferred->fail($error);
|
||||||
} else {
|
} else {
|
||||||
foreach ($result as $type => $records) {
|
foreach ($result as $type => $records) {
|
||||||
$minttl = INF;
|
$minttl = \PHP_INT_MAX;
|
||||||
foreach ($records as list( , , $ttl)) {
|
foreach ($records as list( , , $ttl)) {
|
||||||
if ($ttl && $minttl > $ttl) {
|
if ($ttl < $minttl) {
|
||||||
$minttl = $ttl;
|
$minttl = $ttl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user