mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 06:48:05 +01:00
Merge remote-tracking branch 'dgoulet/bug25223_029_01' into ticket24902_029_05
This commit is contained in:
commit
b60ffc5ce0
2 changed files with 11 additions and 0 deletions
3
changes/bug25223
Normal file
3
changes/bug25223
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
o Minor bugfixes (DoS mitigation):
|
||||||
|
- Make sure we don't modify consensus parameters if we aren't a public
|
||||||
|
relay when a new consensus arrives. Fixes bug 25223.
|
|
@ -748,6 +748,14 @@ dos_close_client_conn(const or_connection_t *or_conn)
|
||||||
void
|
void
|
||||||
dos_consensus_has_changed(const networkstatus_t *ns)
|
dos_consensus_has_changed(const networkstatus_t *ns)
|
||||||
{
|
{
|
||||||
|
/* There are two ways to configure this subsystem, one at startup through
|
||||||
|
* dos_init() which is called when the options are parsed. And this one
|
||||||
|
* through the consensus. We don't want to enable any DoS mitigation if we
|
||||||
|
* aren't a public relay. */
|
||||||
|
if (!public_server_mode(get_options())) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
cc_consensus_has_changed(ns);
|
cc_consensus_has_changed(ns);
|
||||||
conn_consensus_has_changed(ns);
|
conn_consensus_has_changed(ns);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue