From: Nick Mathewson Date: Thu, 1 Nov 2012 02:03:54 +0000 (-0400) Subject: Never support IPv6 traffic on a SOCKS4 connection. X-Git-Tag: tor-0.2.4.7-alpha~35^2~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a62c03fe2c60c8323083b5bf1102906da0ab5914;p=thirdparty%2Ftor.git Never support IPv6 traffic on a SOCKS4 connection. --- diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 969128fcfb..2a46529f01 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -1172,6 +1172,9 @@ connection_ap_handshake_rewrite_and_attach(entry_connection_t *conn, } } + if (socks->socks_version == 4) + conn->ipv6_traffic_ok = 0; + if (!conn->use_begindir && !conn->chosen_exit_name && !circ) { /* see if we can find a suitable enclave exit */ const node_t *r =