diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-29 16:10:17 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-29 16:10:17 +0200 |
commit | 79b0c7b005c110473db797eaa5377b990eb31645 (patch) | |
tree | 658b7a79baafc8dd59278e24782cddf1dcef3e85 /tunnel/defaultroutemonitor.go | |
parent | README: document wg(8) building (diff) | |
download | wireguard-windows-79b0c7b005c110473db797eaa5377b990eb31645.tar.xz wireguard-windows-79b0c7b005c110473db797eaa5377b990eb31645.zip |
tunnel: logical simplification
Diffstat (limited to 'tunnel/defaultroutemonitor.go')
-rw-r--r-- | tunnel/defaultroutemonitor.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tunnel/defaultroutemonitor.go b/tunnel/defaultroutemonitor.go index 6291b695..f14048cd 100644 --- a/tunnel/defaultroutemonitor.go +++ b/tunnel/defaultroutemonitor.go @@ -104,7 +104,7 @@ func monitorDefaultRoutes(device *device.Device, autoMTU bool, tun *tun.NativeTu mtu = iface.MTU } } - if mtu > 0 && (lastMTU == 0 || lastMTU != mtu) { + if mtu > 0 && lastMTU != mtu { iface, err := getIPInterfaceRetry(ourLUID, windows.AF_INET, retry, 100) if err != nil { return err |