From 5a1ee3405ea161b0d1d95ecc2b33e3a15cef9413 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 26 Mar 2020 19:13:51 +0100 Subject: [PATCH] cmd/devp2p: ensure TTL changes are applied on existing records --- cmd/devp2p/dns_route53.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/devp2p/dns_route53.go b/cmd/devp2p/dns_route53.go index 993d6bdfd4..c5f99529b8 100644 --- a/cmd/devp2p/dns_route53.go +++ b/cmd/devp2p/dns_route53.go @@ -180,7 +180,7 @@ func (c *route53Client) computeChanges(name string, records map[string]string, e // Entry is unknown, push a new one log.Info(fmt.Sprintf("Creating %s = %q", path, val)) changes = append(changes, newTXTChange("CREATE", path, ttl, splitTXT(val))) - } else if prevValue != val { + } else if prevValue != val || prevRecords.ttl != ttl { // Entry already exists, only change its content. log.Info(fmt.Sprintf("Updating %s from %q to %q", path, prevValue, val)) changes = append(changes, newTXTChange("UPSERT", path, ttl, splitTXT(val)))