diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-13 03:07:54 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-13 03:07:54 -0600 |
commit | 7b8d23dcc9365c96f56a5d92182d51b53353580f (patch) | |
tree | aa15428beb9fe9af0e2f2948a4e13024eb42ebfd /service/service_tunnel.go | |
parent | installer: overwrite old verison with same version (diff) | |
download | wireguard-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.go | 6 |
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 |