|
@@ -88,6 +88,9 @@ update_intro_circuits(void)
|
|
|
smartlist_t *intro_circs = hs_circuitmap_get_all_intro_circ_relay_side();
|
|
smartlist_t *intro_circs = hs_circuitmap_get_all_intro_circ_relay_side();
|
|
|
|
|
|
|
|
SMARTLIST_FOREACH_BEGIN(intro_circs, circuit_t *, circ) {
|
|
SMARTLIST_FOREACH_BEGIN(intro_circs, circuit_t *, circ) {
|
|
|
|
|
+ /* Defenses might have been enabled or disabled. */
|
|
|
|
|
+ TO_OR_CIRCUIT(circ)->introduce2_dos_defense_enabled =
|
|
|
|
|
+ consensus_param_introduce_defense_enabled;
|
|
|
/* Adjust the rate/burst value that might have changed. */
|
|
/* Adjust the rate/burst value that might have changed. */
|
|
|
token_bucket_ctr_adjust(&TO_OR_CIRCUIT(circ)->introduce2_bucket,
|
|
token_bucket_ctr_adjust(&TO_OR_CIRCUIT(circ)->introduce2_bucket,
|
|
|
consensus_param_introduce_rate_per_sec,
|
|
consensus_param_introduce_rate_per_sec,
|