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 {