Browse Source

Never support IPv6 traffic on a SOCKS4 connection.

Nick Mathewson 11 years ago
parent
commit
a62c03fe2c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/or/connection_edge.c

+ 3 - 0
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 =