diff options
author | David Goulet <dgoulet@torproject.org> | 2019-06-11 08:28:13 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2019-08-06 07:58:14 -0400 |
commit | c5b00c5a514a6b40e5245bc1fd78fe5490922739 (patch) | |
tree | 52c2c6791d959c84c7c2b0d538e8aac1d5cb913a /src/app/main/main.c | |
parent | fec0a7b7cbae344bd813152c8a04b6e87b6fa9a7 (diff) | |
download | tor-c5b00c5a514a6b40e5245bc1fd78fe5490922739.tar.gz tor-c5b00c5a514a6b40e5245bc1fd78fe5490922739.zip |
hs-v3: Add consensus parameters for DoS defenses
Part of #15516
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/app/main/main.c')
-rw-r--r-- | src/app/main/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app/main/main.c b/src/app/main/main.c index 31cee37637..3bdf8f146b 100644 --- a/src/app/main/main.c +++ b/src/app/main/main.c @@ -41,6 +41,7 @@ #include "feature/dircache/consdiffmgr.h" #include "feature/dirparse/routerparse.h" #include "feature/hibernate/hibernate.h" +#include "feature/hs/hs_dos.h" #include "feature/nodelist/authcert.h" #include "feature/nodelist/networkstatus.h" #include "feature/nodelist/routerlist.h" @@ -637,6 +638,10 @@ tor_init(int argc, char *argv[]) /* Initialize circuit padding to defaults+torrc until we get a consensus */ circpad_machines_init(); + /* Initialize hidden service DoS subsystem. We need to do this once the + * configuration object has been set because it can be accessed. */ + hs_dos_init(); + /* Initialize predicted ports list after loading options */ predicted_ports_init(); |