diff --git a/internal/healthcheck/dns.go b/internal/healthcheck/dns.go index 90ca13d..90fdac1 100644 --- a/internal/healthcheck/dns.go +++ b/internal/healthcheck/dns.go @@ -36,9 +36,12 @@ func (h *Healthcheck) DNSCheckLoop() { return } + t := time.Now() + h.lastDNSTime = t + if len(ips) > 0 { log.Println("Received at least 1 IP. Ready!") - h.lastDNSTime = time.Now() + h.lastDNSTimeGT1 = t return }