summaryrefslogtreecommitdiffstats
path: root/src/handshake/noise.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-08-07 11:29:39 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-08-07 11:29:39 +0200
commitf7f10881235e3b9b0c272772a0f4c646f987a8d3 (patch)
tree1fb3c1641dce2315d9f18c2cb8af67ce062c3623 /src/handshake/noise.rs
parentAdd rate limiter check to handshake messages. (diff)
downloadwireguard-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.rs2
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)