[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Never support IPv6 traffic on a SOCKS4 connection.
commit a62c03fe2c60c8323083b5bf1102906da0ab5914
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Wed Oct 31 22:03:54 2012 -0400
Never support IPv6 traffic on a SOCKS4 connection.
---
src/or/connection_edge.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 969128f..2a46529 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 =
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits