From df33e16a9794786c92da4cabef2579b9933ebace Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Sat, 10 Aug 2024 22:34:05 -0700 Subject: [PATCH] Add 30s wait for ipv6 on startup --- gokrazy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gokrazy.go b/gokrazy.go index 279a7b2..a961b66 100644 --- a/gokrazy.go +++ b/gokrazy.go @@ -14,6 +14,7 @@ import ( func main() { gokrazy.WaitForClock() + time.Sleep(30 * time.Second) if !wait.New(wait.WithDeadline(time.Minute), wait.WithWait(time.Second), wait.WithBreak(time.Second)).Do([]string{"www.comics.org:443"}) { log.Println("Failed to connect to www.comics.org") os.Exit(1) // Exit code 1 will cause gokrazy to restart the service