diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-08-07 11:29:39 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-08-07 11:29:39 +0200 |
commit | f7f10881235e3b9b0c272772a0f4c646f987a8d3 (patch) | |
tree | 1fb3c1641dce2315d9f18c2cb8af67ce062c3623 /src/handshake/noise.rs | |
parent | Add rate limiter check to handshake messages. (diff) | |
download | wireguard-rs-f7f10881235e3b9b0c272772a0f4c646f987a8d3.tar.xz wireguard-rs-f7f10881235e3b9b0c272772a0f4c646f987a8d3.zip |
Added initiation flood protection
Diffstat (limited to 'src/handshake/noise.rs')
-rw-r--r-- | src/handshake/noise.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handshake/noise.rs b/src/handshake/noise.rs index 6532f4d..4eea627 100644 --- a/src/handshake/noise.rs +++ b/src/handshake/noise.rs @@ -306,7 +306,7 @@ pub fn consume_initiation<'a, T: Copy>( // check and update timestamp - peer.check_timestamp(device, &ts)?; + peer.check_replay_flood(device, &ts)?; // H := Hash(H || msg.timestamp) |