diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-10-29 21:09:49 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-10-31 11:08:27 +0100 |
commit | 19fed08383027b467479b7c1829e0516c65d9fcb (patch) | |
tree | 1e9041a21d0fa3198715cb00bb7b26ceca7f6eb0 | |
parent | embeddable-dll-service: add all functionality to ringlogger (diff) | |
download | wireguard-windows-19fed08383027b467479b7c1829e0516c65d9fcb.tar.xz wireguard-windows-19fed08383027b467479b7c1829e0516c65d9fcb.zip |
tunnel: stop burst timer if we exceed 2 seconds
Reported-by: Odd Stranne <odd@mullvad.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | tunnel/defaultroutemonitor.go | 1 |
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() |