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:
Norman Maurer 2019-04-15 21:41:04 +02:00
parent 438a4d5467
commit ed6edc7cb9

View File

@ -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) {