aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/service/service_tunnel.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-03-13 03:07:54 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-13 03:07:54 -0600
commit7b8d23dcc9365c96f56a5d92182d51b53353580f (patch)
treeaa15428beb9fe9af0e2f2948a4e13024eb42ebfd /service/service_tunnel.go
parentinstaller: overwrite old verison with same version (diff)
downloadwireguard-windows-7b8d23dcc9365c96f56a5d92182d51b53353580f.tar.xz
wireguard-windows-7b8d23dcc9365c96f56a5d92182d51b53353580f.zip
tunnel: tell wggo about mtu changes
Diffstat (limited to 'service/service_tunnel.go')
-rw-r--r--service/service_tunnel.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/service_tunnel.go b/service/service_tunnel.go
index bf80b8b8..2e615932 100644
--- a/service/service_tunnel.go
+++ b/service/service_tunnel.go
@@ -156,15 +156,15 @@ func (service *tunnelService) Execute(args []string, r <-chan svc.ChangeRequest,
return
}
- guid := wintun.(*tun.NativeTun).GUID()
+ nativeTun := wintun.(*tun.NativeTun)
- routeChangeCallback, err = monitorDefaultRoutes(dev, conf.Interface.Mtu == 0, &guid)
+ routeChangeCallback, err = monitorDefaultRoutes(dev, conf.Interface.Mtu == 0, nativeTun)
if err != nil {
serviceError = ErrorBindSocketsToDefaultRoutes
return
}
- err = configureInterface(conf, &guid)
+ err = configureInterface(conf, nativeTun)
if err != nil {
serviceError = ErrorSetNetConfig
return