Add 30s wait for ipv6 on startup

This commit is contained in:
Timmy Welch 2024-08-10 22:34:05 -07:00
parent 00aac0d425
commit df33e16a97

View File

@ -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