commit 13b2b1108f2640e68dc7af95f5c7278984de743c
parent fcef8e3f75cf39ae7eb6195713d4855b4fc4d08c
Author: David Goulet <dgoulet@torproject.org>
Date: Thu, 30 Sep 2021 10:26:37 -0400
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>
Diffstat:
1 file changed, 0 insertions(+), 3 deletions(-)
diff --git 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;
}