From 44c98968838e1724d1ee77f086c4498f2a3f7643 Mon Sep 17 00:00:00 2001 From: Mathias Hall-Andersen Date: Mon, 10 Jul 2017 12:09:19 +0200 Subject: Added replay protection --- src/receive.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/receive.go') diff --git a/src/receive.go b/src/receive.go index e780c66..6530c47 100644 --- a/src/receive.go +++ b/src/receive.go @@ -432,6 +432,10 @@ func (peer *Peer) RoutineSequentialReceiver() { // check for replay + if !elem.keyPair.replayFilter.ValidateCounter(elem.counter) { + return + } + // time (passive) keep-alive peer.TimerStartKeepalive() -- cgit v1.2.3