aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tunnel/service.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-31 15:04:52 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-31 15:05:51 +0200
commitf6256ac10a8d5e3973df8054594eac0b76f3c2c3 (patch)
treed2335629778192457e433960f62b312b3f801dd5 /tunnel/service.go
parentfirewall: use random GUIDs (diff)
downloadwireguard-windows-f6256ac10a8d5e3973df8054594eac0b76f3c2c3.tar.xz
wireguard-windows-f6256ac10a8d5e3973df8054594eac0b76f3c2c3.zip
tunnel: make tcp/ip waiting explicit
Diffstat (limited to '')
-rw-r--r--tunnel/service.go3
1 files changed, 3 insertions, 0 deletions
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 {