Skip to content

Commit

Permalink
docs: [#1096] add mod doc the banning mod
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Dec 10, 2024
1 parent ce88fa3 commit d539959
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/servers/udp/server/banning.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
//! Banning service for UDP tracker.
//!
//! It bans clients that send invalid connection id's.
//!
//! It uses a Counting Bloom Filter to keep track of the number of connection id
//! errors per ip. That means there can be false positives, but not false
//! negatives.
//!
//! 1 out of 100000 requests will be a false positive and the client will not
//! receive a response.
use std::net::IpAddr;

use bloom::{CountingBloomFilter, ASMS};
Expand Down

0 comments on commit d539959

Please sign in to comment.