mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 15:10:48 +01:00
hs-v3: Don't apply DoS defenses if circuit has not been flagged
Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
724d9eb84b
commit
aee66c80bd
1 changed files with 4 additions and 2 deletions
|
@ -156,8 +156,10 @@ hs_dos_can_send_intro2(or_circuit_t *s_intro_circ)
|
||||||
{
|
{
|
||||||
tor_assert(s_intro_circ);
|
tor_assert(s_intro_circ);
|
||||||
|
|
||||||
/* Always allowed if the defense is disabled. */
|
/* Allow to send the cell if the DoS defenses are disabled on the circuit.
|
||||||
if (!param_introduce_defense_enabled) {
|
* This can be set by the consensus, the ESTABLISH_INTRO cell extension or
|
||||||
|
* the hardcoded values in tor code. */
|
||||||
|
if (!s_intro_circ->introduce2_dos_defense_enabled) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue