mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
test: Adapt HS DoS test to use latest parameter
We added a flag on the circuit to know if the DoS defenses are enabled or not. Before, it was solely the consensus parameter. Part of #30924 Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
committed by
George Kadianakis
parent
4c71accc49
commit
1c554334ac
@@ -57,6 +57,7 @@ test_can_send_intro2(void *arg)
|
||||
|
||||
/* Make that circuit a service intro point. */
|
||||
circuit_change_purpose(TO_CIRCUIT(or_circ), CIRCUIT_PURPOSE_INTRO_POINT);
|
||||
or_circ->introduce2_dos_defense_enabled = 1;
|
||||
/* Initialize the INTRODUCE2 token bucket for the rate limiting. */
|
||||
token_bucket_ctr_init(&or_circ->introduce2_bucket,
|
||||
hs_dos_get_intro2_rate_param(),
|
||||
|
||||
Reference in New Issue
Block a user