From 88c9d3d687295e67e27e2276d532a31dda934d9b Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Sun, 19 Apr 2020 20:44:33 +0000 Subject: [PATCH] Waits 300ms before first DNS resolution try --- internal/dns/wait.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/dns/wait.go b/internal/dns/wait.go index e6d295ec..2d1431be 100644 --- a/internal/dns/wait.go +++ b/internal/dns/wait.go @@ -8,6 +8,7 @@ import ( func (c *configurator) WaitForUnbound() (err error) { const maxTries = 10 const hostToResolve = "github.com" + time.Sleep(300 * time.Millisecond) for try := 1; try <= maxTries; try++ { _, err := c.lookupIP(hostToResolve) if err == nil {