From 16dd00a9512b7cd47c659af6fe1c69e193050aa2 Mon Sep 17 00:00:00 2001 From: Aaron Kaiser Date: Mon, 13 May 2024 11:45:23 +0200 Subject: [PATCH] Remove rate-limiting --- src/wireguard/handshake/peer.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wireguard/handshake/peer.rs b/src/wireguard/handshake/peer.rs index f847725..7929256 100644 --- a/src/wireguard/handshake/peer.rs +++ b/src/wireguard/handshake/peer.rs @@ -101,11 +101,11 @@ impl Peer { }; // check flood attack - if let Some(last) = *last_initiation_consumption { - if last.elapsed() < TIME_BETWEEN_INITIATIONS { - return Err(HandshakeError::InitiationFlood); - } - } + // if let Some(last) = *last_initiation_consumption { + // if last.elapsed() < TIME_BETWEEN_INITIATIONS { + // return Err(HandshakeError::InitiationFlood); + // } + // } // reset state if let State::InitiationSent { local, .. } = *state {