From 335c5d7bcf36d07a7c32fc25ca6b3050e454c50a Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 29 May 2019 16:10:17 +0200 Subject: tunnel: logical simplification Signed-off-by: Jason A. Donenfeld --- tunnel/defaultroutemonitor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tunnel/defaultroutemonitor.go') 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 -- cgit v1.2.3-59-g8ed1b