Never support IPv6 traffic on a SOCKS4 connection.

This commit is contained in:
Nick Mathewson 2012-10-31 22:03:54 -04:00
parent 898f9c8bcc
commit a62c03fe2c

View File

@ -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) { if (!conn->use_begindir && !conn->chosen_exit_name && !circ) {
/* see if we can find a suitable enclave exit */ /* see if we can find a suitable enclave exit */
const node_t *r = const node_t *r =