From: Mike Perry Date: Thu, 14 Jul 2022 17:34:32 +0000 (+0000) Subject: Initialize startup effort at 0. X-Git-Tag: tor-0.4.8.1-alpha~83 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d36144ba31e9841a3b8ebb1650406f72256a540b;p=thirdparty%2Ftor.git Initialize startup effort at 0. If it works correctly, auto-tuning should set a non-zero effort once an attack begins. --- 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);