소스 검색

Never support IPv6 traffic on a SOCKS4 connection.

Nick Mathewson 13 년 전
부모
커밋
a62c03fe2c
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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 =