Skip to content

Commit

Permalink
Merge #1144: Increase IP ban duration to 1 hour
Browse files Browse the repository at this point in the history
fb77972 feat: [#1139] increas ip ban duration to 1 hour (Jose Celano)

Pull request description:

  Increase IP ban duration to 1 hour.

ACKs for top commit:
  josecelano:
    ACK fb77972

Tree-SHA512: 67f3beef605277c10863264e9e57c784dd29ff8bcc16b14d864f972006e41922f8ee8d04404e672056b326eb678e2e39df0161568aace2aeca2a569be49d2d9c
  • Loading branch information
josecelano committed Dec 19, 2024
2 parents df101fb + fb77972 commit 4a9dcef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/servers/udp/server/launcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use crate::servers::udp::UDP_TRACKER_LOG_TARGET;
/// The maximum number of connection id errors per ip. Clients will be banned if
/// they exceed this limit.
const MAX_CONNECTION_ID_ERRORS_PER_IP: u32 = 10;
const IP_BANS_RESET_INTERVAL_IN_SECS: u64 = 120;
const IP_BANS_RESET_INTERVAL_IN_SECS: u64 = 3600;

/// A UDP server instance launcher.
#[derive(Constructor)]
Expand Down

0 comments on commit 4a9dcef

Please sign in to comment.