diff options
Diffstat (limited to 'device/timers.go')
-rw-r--r-- | device/timers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/device/timers.go b/device/timers.go index 5f28fcc..18ee736 100644 --- a/device/timers.go +++ b/device/timers.go @@ -147,7 +147,7 @@ func expiredPersistentKeepalive(peer *Peer) { /* Should be called after an authenticated data packet is sent. */ func (peer *Peer) timersDataSent() { if peer.timersActive() && !peer.timers.newHandshake.IsPending() { - peer.timers.newHandshake.Mod(KeepaliveTimeout + RekeyTimeout) + peer.timers.newHandshake.Mod(KeepaliveTimeout + RekeyTimeout + time.Millisecond*time.Duration(rand.Int31n(RekeyTimeoutJitterMaxMs))) } } |