aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-10-31 22:03:54 -0400
committerNick Mathewson <nickm@torproject.org>2012-11-14 23:16:24 -0500
commita62c03fe2c60c8323083b5bf1102906da0ab5914 (patch)
tree65dc6498b2fc4cc45d6171ab8f524eef326fc3d5 /src
parent898f9c8bcca04320d64963a87ea3bca81113bf6f (diff)
downloadtor-a62c03fe2c60c8323083b5bf1102906da0ab5914.tar
tor-a62c03fe2c60c8323083b5bf1102906da0ab5914.tar.gz
Never support IPv6 traffic on a SOCKS4 connection.
Diffstat (limited to 'src')
-rw-r--r--src/or/connection_edge.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 969128fcf..2a46529f0 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 =