From 07fbafc499d2217f326bba3bb8609cf03d3bc82e Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 29 Oct 2019 21:09:49 +0100 Subject: tunnel: stop burst timer if we exceed 2 seconds Reported-by: Odd Stranne --- tunnel/defaultroutemonitor.go | 1 + 1 file changed, 1 insertion(+) 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() -- cgit v1.2.3-59-g8ed1b