Correctly calculate ttl for AuthoritativeNameServer when update existing records (#9051)
Motivation: We did not correctly calculate the new ttl as we did forget to add `this.` Modifications: Add .this and so correctly calculate the TTL Result: Use correct TTL for authoritative nameservers when updating these.
This commit is contained in:
parent
438a4d5467
commit
ed6edc7cb9
@ -1223,7 +1223,7 @@ abstract class DnsResolveContext<T> {
|
||||
void update(InetSocketAddress address, long ttl) {
|
||||
assert this.address == null || this.address.isUnresolved();
|
||||
this.address = address;
|
||||
this.ttl = min(ttl, ttl);
|
||||
this.ttl = min(this.ttl, ttl);
|
||||
}
|
||||
|
||||
void update(InetSocketAddress address) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user