diff options
Diffstat (limited to 'tunnel')
-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 |