diff options
Diffstat (limited to 'device/receive.go')
-rw-r--r-- | device/receive.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/device/receive.go b/device/receive.go index 22870f2..32d632b 100644 --- a/device/receive.go +++ b/device/receive.go @@ -79,7 +79,7 @@ func (peer *Peer) keepKeyFreshReceiving() { return } keypair := peer.keypairs.Current() - if keypair != nil && keypair.isInitiator && time.Now().Sub(keypair.created) > (RejectAfterTime-KeepaliveTimeout-RekeyTimeout) { + if keypair != nil && keypair.isInitiator && time.Since(keypair.created) > (RejectAfterTime-KeepaliveTimeout-RekeyTimeout) { peer.timers.sentLastMinuteHandshake.Set(true) peer.SendHandshakeInitiation(false) } |