aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-10-29 21:09:49 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-10-31 11:08:27 +0100
commit07fbafc499d2217f326bba3bb8609cf03d3bc82e (patch)
tree1e9041a21d0fa3198715cb00bb7b26ceca7f6eb0
parentembeddable-dll-service: add all functionality to ringlogger (diff)
downloadwireguard-windows-07fbafc499d2217f326bba3bb8609cf03d3bc82e.tar.xz
wireguard-windows-07fbafc499d2217f326bba3bb8609cf03d3bc82e.zip
tunnel: stop burst timer if we exceed 2 seconds
Reported-by: Odd Stranne <odd@mullvad.net>
-rw-r--r--tunnel/defaultroutemonitor.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/tunnel/defaultroutemonitor.go b/tunnel/defaultroutemonitor.go
index 72bab135..c102b644 100644
--- a/tunnel/defaultroutemonitor.go
+++ b/tunnel/defaultroutemonitor.go
@@ -123,6 +123,7 @@ func monitorDefaultRoutes(family winipcfg.AddressFamily, device *device.Device,
firstBurst = time.Now()
} else if time.Since(firstBurst) > time.Second*2 {
firstBurst = time.Time{}
+ burstTimer.Stop()
doIt()
}
burstMutex.Unlock()