aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2016-11-07 10:49:10 -0500
committerDavid Goulet <dgoulet@torproject.org>2016-11-07 10:49:10 -0500
commit3ee9a6d6fdde3a05620e6c0e14eea6a1957616f4 (patch)
tree1062320838ca64b95f49f4871c38b6b429563a31 /src/or/directory.c
parent800dff13080111b1ce1c2f5e28d9ba326299f62a (diff)
downloadtor-3ee9a6d6fdde3a05620e6c0e14eea6a1957616f4.tar.gz
tor-3ee9a6d6fdde3a05620e6c0e14eea6a1957616f4.zip
hs: Remove EnableOnionServiceV3 consensus param
As of #19899, we decided to allow any relay understanding the onion service version 3 protocol to be able to use it. The service and client will be the one controlled by a consensus parameter (different one for both of them) but if you are a relay and you can understand a protocol, basically you should use the feature. Closes #19899 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 8c7953020d..257bd2993e 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -3443,13 +3443,6 @@ handle_get_hs_descriptor_v3(dir_connection_t *conn,
const char *pubkey_str = NULL;
const char *url = args->url;
- /* Don't serve v3 descriptors if next gen onion service is disabled. */
- if (!hs_v3_protocol_is_enabled()) {
- /* 404 is used for an unrecognized URL so send back the same. */
- write_http_status_line(conn, 404, "Not found");
- goto done;
- }
-
/* Reject unencrypted dir connections */
if (!connection_dir_is_encrypted(conn)) {
write_http_status_line(conn, 404, "Not found");
@@ -3664,13 +3657,6 @@ directory_handle_command_post(dir_connection_t *conn, const char *headers,
* the prop224 be deployed and thus use. */
if (connection_dir_is_encrypted(conn) && !strcmpstart(url, "/tor/hs/")) {
const char *msg = "HS descriptor stored successfully.";
- /* Don't accept v3 and onward publish request if next gen onion service is
- * disabled. */
- if (!hs_v3_protocol_is_enabled()) {
- /* 404 is used for an unrecognized URL so send back the same. */
- write_http_status_line(conn, 404, "Not found");
- goto done;
- }
/* We most probably have a publish request for an HS descriptor. */
int code = handle_post_hs_descriptor(url, body);