]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Initialize startup effort at 0.
authorMike Perry <mikeperry-git@torproject.org>
Thu, 14 Jul 2022 17:34:32 +0000 (17:34 +0000)
committerMicah Elizabeth Scott <beth@torproject.org>
Wed, 10 May 2023 14:37:11 +0000 (07:37 -0700)
If it works correctly, auto-tuning should set a non-zero effort once
an attack begins.

src/feature/hs/hs_service.c

index 4f8a689290e798987b88097ed92d950665501815..80f0863183e8c19b93bf9d79bbb9a18bd95487f2 100644 (file)
@@ -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);