aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2021-09-30 10:26:37 -0400
committerDavid Goulet <dgoulet@torproject.org>2021-09-30 10:26:37 -0400
commit13b2b1108f2640e68dc7af95f5c7278984de743c (patch)
tree45c1f29ed27199a4c69e8c67212c394bc194b2ad
parentfcef8e3f75cf39ae7eb6195713d4855b4fc4d08c (diff)
downloadtor-13b2b1108f2640e68dc7af95f5c7278984de743c.tar.gz
tor-13b2b1108f2640e68dc7af95f5c7278984de743c.zip
hs-v2: Disable SOCKS connection for v2 addresses
This effectively turns off the ability of tor to use HSv2 as a client by invalidating the v2 onion hostname passed through a SOCKS request. Part of #40476 Signed-off-by: David Goulet <dgoulet@torproject.org>
-rw-r--r--src/core/or/connection_edge.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/core/or/connection_edge.c b/src/core/or/connection_edge.c
index 84b80313ce..ae9177a2d0 100644
--- a/src/core/or/connection_edge.c
+++ b/src/core/or/connection_edge.c
@@ -4348,9 +4348,6 @@ parse_extended_hostname(char *address)
if (q != address) {
memmove(address, q, strlen(q) + 1 /* also get \0 */);
}
- if (rend_valid_v2_service_id(query)) {
- return ONION_V2_HOSTNAME; /* success */
- }
if (hs_address_is_valid(query)) {
return ONION_V3_HOSTNAME;
}