diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-10-31 22:40:55 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-11-14 23:16:24 -0500 |
commit | 93591383a9169bd1716aa6495424e5e5e6161bd8 (patch) | |
tree | 89dcfb198e0616e5f9d6520d177ca2d59aa79261 /src | |
parent | d276894772cc1ed2cfdcbeb6efd96b1abca3f2dc (diff) | |
download | tor-93591383a9169bd1716aa6495424e5e5e6161bd8.tar.gz tor-93591383a9169bd1716aa6495424e5e5e6161bd8.zip |
When asking for a specific address type, others aren't acceptable
Diffstat (limited to 'src')
-rw-r--r-- | 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 1dd1dbc4d4..2f3ed5d6f8 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; } } } |