Added last_handshake_time fields to UAPI
This commit is contained in:
parent
bd6027a4d5
commit
18714fc4a4
5 changed files with 23 additions and 7 deletions
|
|
@ -52,6 +52,10 @@ func (peer *Peer) KeepKeyFreshReceiving() {
|
|||
func (peer *Peer) EventHandshakeComplete() {
|
||||
peer.device.log.Info.Println("Negotiated new handshake for", peer.String())
|
||||
peer.timer.zeroAllKeys.Reset(RejectAfterTime * 3)
|
||||
atomic.StoreInt64(
|
||||
&peer.stats.lastHandshakeNano,
|
||||
time.Now().UnixNano(),
|
||||
)
|
||||
signalSend(peer.signal.handshakeCompleted)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue