Add 30s wait for ipv6 on startup
This commit is contained in:
parent
00aac0d425
commit
df33e16a97
@ -14,6 +14,7 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
gokrazy.WaitForClock()
|
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"}) {
|
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")
|
log.Println("Failed to connect to www.comics.org")
|
||||||
os.Exit(1) // Exit code 1 will cause gokrazy to restart the service
|
os.Exit(1) // Exit code 1 will cause gokrazy to restart the service
|
||||||
|
Loading…
Reference in New Issue
Block a user