aboutsummaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_common.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2021-09-30 10:32:05 -0400
committerDavid Goulet <dgoulet@torproject.org>2021-09-30 10:38:08 -0400
commit765bdb9c3331a0fdbf15406db82fa4a29d6651b4 (patch)
tree9570f0fba3531eb94028063d90847721dfef90b1 /src/feature/hs/hs_common.h
parent13b2b1108f2640e68dc7af95f5c7278984de743c (diff)
downloadtor-765bdb9c3331a0fdbf15406db82fa4a29d6651b4.tar.gz
tor-765bdb9c3331a0fdbf15406db82fa4a29d6651b4.zip
hs-v2: Disable version 2 service
The minimum service version is raised from 2 to 3 which effectively disable loading or creating an onion service v2. As for ADD_ONION, for version 2, a 551 error is returned: "551 Failed to add Onion Service" Part of #40476 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/hs/hs_common.h')
-rw-r--r--src/feature/hs/hs_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/hs/hs_common.h b/src/feature/hs/hs_common.h
index a44505930a..94cdf5abc4 100644
--- a/src/feature/hs/hs_common.h
+++ b/src/feature/hs/hs_common.h
@@ -25,7 +25,7 @@ struct ed25519_keypair_t;
/* Version 3 of the protocol (prop224). */
#define HS_VERSION_THREE 3
/* Earliest and latest version we support. */
-#define HS_VERSION_MIN HS_VERSION_TWO
+#define HS_VERSION_MIN HS_VERSION_THREE
#define HS_VERSION_MAX HS_VERSION_THREE
/** Try to maintain this many intro points per service by default. */