aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2022-01-18 13:12:35 -0500
committerDavid Goulet <dgoulet@torproject.org>2022-01-18 13:12:35 -0500
commit5b18f824666571c2a84f1e4e19718fb9ad782d74 (patch)
tree04b8e12d8ad4275c6bc8d9084c8c2a919867dfe2
parent10cd73761d7d8a49ba64ddad5a8f31b5a95cb3a7 (diff)
parent7d9d769123c33a88b6f441e19faf56c2c1e5931c (diff)
downloadtor-5b18f824666571c2a84f1e4e19718fb9ad782d74.tar.gz
tor-5b18f824666571c2a84f1e4e19718fb9ad782d74.zip
Merge branch 'maint-0.4.6' into release-0.4.6
-rw-r--r--changes/ticket405094
-rw-r--r--src/core/or/protover.c4
-rw-r--r--src/test/test_protover.c2
3 files changed, 7 insertions, 3 deletions
diff --git a/changes/ticket40509 b/changes/ticket40509
new file mode 100644
index 0000000000..ba4502ff3b
--- /dev/null
+++ b/changes/ticket40509
@@ -0,0 +1,4 @@
+ o Minor bugfix (relay):
+ - Remove the HSDir and HSIntro onion service v2 protocol versions so relay
+ stop advertising that they support them. Fixes bug 40509; bugfix on
+ 0.3.5.17.
diff --git a/src/core/or/protover.c b/src/core/or/protover.c
index 04df8aeeb8..484c15386f 100644
--- a/src/core/or/protover.c
+++ b/src/core/or/protover.c
@@ -437,8 +437,8 @@ protover_get_supported_protocols(void)
"Desc=1-2 "
"DirCache=2 "
"FlowCtrl=1 "
- "HSDir=1-2 "
- "HSIntro=3-5 "
+ "HSDir=2 "
+ "HSIntro=4-5 "
"HSRend=1-2 "
"Link=1-5 "
#ifdef HAVE_WORKING_TOR_TLS_GET_TLSSECRETS
diff --git a/src/test/test_protover.c b/src/test/test_protover.c
index 4b25a86e26..6ebc84b5a4 100644
--- a/src/test/test_protover.c
+++ b/src/test/test_protover.c
@@ -354,7 +354,7 @@ test_protover_supports_version(void *arg)
/* HSv2 Rend and HSDir protocol versions. */
#define PROTOVER_HS_RENDEZVOUS_POINT_V2 1
-#define PROTOVER_HSDIR_V2 1
+#define PROTOVER_HSDIR_V2 2
/* DirCache, Desc, Microdesc, and Cons protocol versions. */
#define PROTOVER_DIRCACHE_V1 1