]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Never support IPv6 traffic on a SOCKS4 connection.
authorNick Mathewson <nickm@torproject.org>
Thu, 1 Nov 2012 02:03:54 +0000 (22:03 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 15 Nov 2012 04:16:24 +0000 (23:16 -0500)
src/or/connection_edge.c

index 969128fcfb75fbb4e30088ac583c22e7d6c1fbb8..2a46529f011ce75d93474f0ea7e74823cbd95aee 100644 (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) {
         /* see if we can find a suitable enclave exit */
         const node_t *r =