From 494269a0e534b61c4aeb69ff2ab3f3f3bb8767c2 Mon Sep 17 00:00:00 2001 From: Jo Shields Date: Fri, 17 Oct 2025 10:25:34 -0400 Subject: [PATCH] Bump number of retries before abandoning all polling for a domain This should help weather the storm on brief connection outages. It's a bad and stupid solution, but it's less bad than the existing default. Closes: https://github.com/qdm12/ddns-updater/issues/1029 --- internal/update/getip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/update/getip.go b/internal/update/getip.go index 79d91924d..839443109 100644 --- a/internal/update/getip.go +++ b/internal/update/getip.go @@ -18,7 +18,7 @@ var ErrIPv6NotSupported = errors.New("IPv6 is not supported on this system") func tryAndRepeatGettingIP(ctx context.Context, getIPFunc getIPFunc, logger Logger, version ipversion.IPVersion, ) (ip netip.Addr, err error) { - const tries = 3 + const tries = 60 logMessagePrefix := "obtaining " + version.String() + " address" errs := make([]error, 0, tries) for try := range tries {