aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@torproject.org>2022-07-14 17:34:32 +0000
committerMicah Elizabeth Scott <beth@torproject.org>2023-05-10 07:37:11 -0700
commitd36144ba31e9841a3b8ebb1650406f72256a540b (patch)
treeed1443178f8012cb5363e5de0e00eb5c39d6e79c /src
parentec9e95cf1ee9aff6f2607f0b45e1d6d1f7ba4513 (diff)
downloadtor-d36144ba31e9841a3b8ebb1650406f72256a540b.tar.gz
tor-d36144ba31e9841a3b8ebb1650406f72256a540b.zip
Initialize startup effort at 0.
If it works correctly, auto-tuning should set a non-zero effort once an attack begins.
Diffstat (limited to 'src')
-rw-r--r--src/feature/hs/hs_service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/hs/hs_service.c b/src/feature/hs/hs_service.c
index 4f8a689290..80f0863183 100644
--- a/src/feature/hs/hs_service.c
+++ b/src/feature/hs/hs_service.c
@@ -283,7 +283,7 @@ initialize_pow_defenses(hs_service_t *service)
/* We recalculate and update the suggested effort every HS_UPDATE_PERIOD
* seconds. */
- pow_state->suggested_effort = HS_POW_SUGGESTED_EFFORT_DEFAULT;
+ pow_state->suggested_effort = 0;
pow_state->rend_handled = 0;
pow_state->total_effort = 0;
pow_state->next_effort_update = (time(NULL) + HS_UPDATE_PERIOD);