Flood with a specific large number of connections
This commit is contained in:
parent
12882938e3
commit
9495c8cbda
|
@ -131,8 +131,8 @@ impl Censor {
|
|||
{
|
||||
let bridge = bridges.get_mut(fingerprint).unwrap();
|
||||
|
||||
let mut rng = rand::thread_rng();
|
||||
let num_connections = rng.gen_range(1000..30000);
|
||||
// A large number
|
||||
let num_connections = 30000;
|
||||
|
||||
// Make a bunch of connections to the bridge
|
||||
bridge.censor_flood(num_connections);
|
||||
|
@ -145,7 +145,7 @@ impl Censor {
|
|||
let num_prs = if config.one_positive_report_per_cred {
|
||||
*cred_count
|
||||
} else {
|
||||
rng.gen_range(1000..30000)
|
||||
30000
|
||||
};
|
||||
for _ in 0..num_prs {
|
||||
self.send_positive_report(config, &bridge.fingerprint).await;
|
||||
|
|
Loading…
Reference in New Issue