summaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_intropoint.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-08-12 12:32:38 -0400
committerGeorge Kadianakis <desnacked@riseup.net>2019-08-26 15:53:46 +0300
commit7faf10495fa50528fc8a9c45e729b9bc284fab19 (patch)
tree66cd768ebe45a5c952c52c9efedec68819e64359 /src/feature/hs/hs_intropoint.c
parent6c79172924a6a1660e55c29b7f2a205205ce0d21 (diff)
downloadtor-7faf10495fa50528fc8a9c45e729b9bc284fab19.tar.gz
tor-7faf10495fa50528fc8a9c45e729b9bc284fab19.zip
hs-v3: Rename INTRO2 consensus param getters
Make it clear that these functions return the consensus param only. Introduction point can not set those values with a torrc option. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/hs/hs_intropoint.c')
-rw-r--r--src/feature/hs/hs_intropoint.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/feature/hs/hs_intropoint.c b/src/feature/hs/hs_intropoint.c
index 2c105f0b60..a53ca0d6ba 100644
--- a/src/feature/hs/hs_intropoint.c
+++ b/src/feature/hs/hs_intropoint.c
@@ -205,8 +205,10 @@ handle_verified_establish_intro_cell(or_circuit_t *circ,
/* Repurpose this circuit into an intro circuit. */
circuit_change_purpose(TO_CIRCUIT(circ), CIRCUIT_PURPOSE_INTRO_POINT);
/* Initialize the INTRODUCE2 token bucket for the rate limiting. */
- token_bucket_ctr_init(&circ->introduce2_bucket, hs_dos_get_intro2_rate(),
- hs_dos_get_intro2_burst(), (uint32_t) approx_time());
+ token_bucket_ctr_init(&circ->introduce2_bucket,
+ hs_dos_get_intro2_rate_param(),
+ hs_dos_get_intro2_burst_param(),
+ (uint32_t) approx_time());
return 0;
}