Remove rate-limiting
This commit is contained in:
@@ -101,11 +101,11 @@ impl<O> Peer<O> {
|
||||
};
|
||||
|
||||
// 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 {
|
||||
|
||||
Reference in New Issue
Block a user