[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] When asking for a specific address type, others aren't acceptable



commit 93591383a9169bd1716aa6495424e5e5e6161bd8
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Wed Oct 31 22:40:55 2012 -0400

    When asking for a specific address type, others aren't acceptable
---
 src/or/connection_edge.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 1dd1dbc..2f3ed5d 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -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;
           }
         }
       }



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits