Remove rate-limiting
This commit is contained in:
@@ -101,11 +101,11 @@ impl<O> Peer<O> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// check flood attack
|
// check flood attack
|
||||||
if let Some(last) = *last_initiation_consumption {
|
// if let Some(last) = *last_initiation_consumption {
|
||||||
if last.elapsed() < TIME_BETWEEN_INITIATIONS {
|
// if last.elapsed() < TIME_BETWEEN_INITIATIONS {
|
||||||
return Err(HandshakeError::InitiationFlood);
|
// return Err(HandshakeError::InitiationFlood);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
// reset state
|
// reset state
|
||||||
if let State::InitiationSent { local, .. } = *state {
|
if let State::InitiationSent { local, .. } = *state {
|
||||||
|
|||||||
Reference in New Issue
Block a user