[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/maint-0.3.2] hs-v3: Fix consensus param "hsdir-interval" name



commit 7df28ce2990cc0890b05767f07756990e0d91e97
Author: David Goulet <dgoulet@xxxxxxxxxxxxxx>
Date:   Mon Nov 13 11:48:56 2017 -0500

    hs-v3: Fix consensus param "hsdir-interval" name
    
    The dir-spec.txt specifies it to be "hsdir_interval" (underscore).
    
    Fixes #24262
    
    Signed-off-by: David Goulet <dgoulet@xxxxxxxxxxxxxx>
---
 changes/bug24262   | 3 +++
 src/or/hs_common.c | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/changes/bug24262 b/changes/bug24262
new file mode 100644
index 000000000..eee69512e
--- /dev/null
+++ b/changes/bug24262
@@ -0,0 +1,3 @@
+  o Minor bugfixes (hidden service):
+    - Fix the consensus parameter "hsdir-interval" to "hsdir_interval" so it
+      matches the dir-spec.txt. Fixes bug 24262; bugfix on 0.3.1.1-alpha.
diff --git a/src/or/hs_common.c b/src/or/hs_common.c
index 42508126f..7cef5a8e2 100644
--- a/src/or/hs_common.c
+++ b/src/or/hs_common.c
@@ -56,7 +56,7 @@ hs_check_service_private_dir(const char *username, const char *path,
 STATIC uint64_t
 get_time_period_length(void)
 {
-  int32_t time_period_length = networkstatus_get_param(NULL, "hsdir-interval",
+  int32_t time_period_length = networkstatus_get_param(NULL, "hsdir_interval",
                                              HS_TIME_PERIOD_LENGTH_DEFAULT,
                                              HS_TIME_PERIOD_LENGTH_MIN,
                                              HS_TIME_PERIOD_LENGTH_MAX);



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits