hs-v2: Disable SOCKS connection for v2 addresses
commit13b2b1108f2640e68dc7af95f5c7278984de743c
authorDavid Goulet <dgoulet@torproject.org>
Thu, 30 Sep 2021 14:26:37 +0000 (30 10:26 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Thu, 30 Sep 2021 14:26:37 +0000 (30 10:26 -0400)
tree45c1f29ed27199a4c69e8c67212c394bc194b2ad
parentfcef8e3f75cf39ae7eb6195713d4855b4fc4d08c
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>
src/core/or/connection_edge.c