]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
When asking for a specific address type, others aren't acceptable
authorNick Mathewson <nickm@torproject.org>
Thu, 1 Nov 2012 02:40:55 +0000 (22:40 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 15 Nov 2012 04:16:24 +0000 (23:16 -0500)
src/or/connection_edge.c

index 1dd1dbc4d41c61a8b5d9c64f22255c5feb74efe1..2f3ed5d6f82fe2cb21290c10b6f8ce3ac63ab2f3 100644 (file)
@@ -1168,6 +1168,10 @@ connection_ap_handshake_rewrite_and_attach(entry_connection_t *conn,
                      "no IPv4 traffic supported.");
             connection_mark_unattached_ap(conn, END_STREAM_REASON_ENTRYPOLICY);
             return -1;
+          } else if (family == AF_INET6) {
+            conn->ipv4_traffic_ok = 0;
+          } else if (family == AF_INET) {
+            conn->ipv6_traffic_ok = 0;
           }
         }
       }