Skip to content

Commit 7b4ec75

Browse files
committed
docs: [torrust#1096] add mod doc the banning mod
1 parent ce88fa3 commit 7b4ec75

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/servers/udp/server/banning.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
//! Banning service for UDP tracker.
2+
//!
3+
//! It bans clients that send invalid connection id's.
4+
//!
5+
//! It uses a Counting Bloom Filter to keep track of the number of connection id
6+
//! errors per ip. That means there can be false positives, but not false
7+
//! negatives.
8+
//!
9+
//! 1 out of 100000 requests will be a false positive and the client will not
10+
//! receive a response.
111
use std::net::IpAddr;
212

313
use bloom::{CountingBloomFilter, ASMS};

0 commit comments

Comments
 (0)