diff options
author | Micah Elizabeth Scott <beth@torproject.org> | 2023-02-27 18:47:33 -0800 |
---|---|---|
committer | Micah Elizabeth Scott <beth@torproject.org> | 2023-05-10 07:38:28 -0700 |
commit | 0e271dda77e8c1c8d5644d0132fea1177bccf62e (patch) | |
tree | 90c709dd262583ee88999d5681971b6296f9b5ad /src/feature/hs | |
parent | f3b98116b6f331ec9b849867dff8dec957ce7edc (diff) | |
download | tor-0e271dda77e8c1c8d5644d0132fea1177bccf62e.tar.gz tor-0e271dda77e8c1c8d5644d0132fea1177bccf62e.zip |
hs_pow: reduce min_effort default to 1
We may want to choose something larger eventually, but 20 seemed
much too large. Very low nonzero efforts are still useful against
a script kiddie level DoS attack.
Signed-off-by: Micah Elizabeth Scott <beth@torproject.org>
Diffstat (limited to 'src/feature/hs')
-rw-r--r-- | src/feature/hs/hs_config.h | 2 | ||||
-rw-r--r-- | src/feature/hs/hs_pow.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/feature/hs/hs_config.h b/src/feature/hs/hs_config.h index 119a91565b..831f7cf922 100644 --- a/src/feature/hs/hs_config.h +++ b/src/feature/hs/hs_config.h @@ -27,7 +27,7 @@ /* Default values for the HS anti-DoS PoW defenses. */ #define HS_CONFIG_V3_POW_DEFENSES_DEFAULT 0 -#define HS_CONFIG_V3_POW_DEFENSES_MIN_EFFORT_DEFAULT 20 +#define HS_CONFIG_V3_POW_DEFENSES_MIN_EFFORT_DEFAULT 1 /* API */ diff --git a/src/feature/hs/hs_pow.h b/src/feature/hs/hs_pow.h index 4eb9c5faa6..92ea011b2b 100644 --- a/src/feature/hs/hs_pow.h +++ b/src/feature/hs/hs_pow.h @@ -18,7 +18,6 @@ typedef unsigned __int128 uint128_t; #include "lib/evloop/token_bucket.h" #include "lib/smartlist_core/smartlist_core.h" -#define HS_POW_SUGGESTED_EFFORT_DEFAULT 20 // HRPR TODO 5000 /* Service updates the suggested effort every HS_UPDATE_PERIOD seconds. */ #define HS_UPDATE_PERIOD 300 // HRPR TODO Should be consensus |