diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-07-10 12:09:19 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-07-10 12:09:19 +0200 |
commit | 44c98968838e1724d1ee77f086c4498f2a3f7643 (patch) | |
tree | a3820a9366025b634158c68e9711a2d241d87afa /src/receive.go | |
parent | 4ad62aaa6aa269f08c0fdc9c139e6d5417e21746 (diff) |
Added replay protection
Diffstat (limited to 'src/receive.go')
-rw-r--r-- | src/receive.go | 4 |
1 files changed, 4 insertions, 0 deletions
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() |