From f6256ac10a8d5e3973df8054594eac0b76f3c2c3 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 31 May 2019 15:04:52 +0200 Subject: tunnel: make tcp/ip waiting explicit --- tunnel/service.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tunnel/service.go') diff --git a/tunnel/service.go b/tunnel/service.go index 99bb3497..70e2c8a1 100644 --- a/tunnel/service.go +++ b/tunnel/service.go @@ -183,6 +183,9 @@ func (service *Service) Execute(args []string, r <-chan svc.ChangeRequest, chang log.Println("Bringing peers up") dev.Up() + log.Println("Waiting for TCP/IP to attach to interface") + waitForFamilies(nativeTun) //TODO: move this sort of thing into tun/wintun/CreateInterface + log.Println("Monitoring default routes") routeChangeCallback, err = monitorDefaultRoutes(dev, conf.Interface.MTU == 0, nativeTun) if err != nil { -- cgit v1.2.3-59-g8ed1b