diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-11-05 13:11:53 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-11-14 23:16:25 -0500 |
commit | a58e17bcc308654b7e973debe88fe74ad817a2bb (patch) | |
tree | cb7689fdfdd38db842deb7b0f20704f5d88fc36b /src/or/connection_edge.c | |
parent | 25cf286fb1b2a11f82b3e5a0e7800a2071ec6ed2 (diff) | |
download | tor-a58e17bcc308654b7e973debe88fe74ad817a2bb.tar.gz tor-a58e17bcc308654b7e973debe88fe74ad817a2bb.zip |
Change signature of router_compare_to_my_exit_policy so dns can use it
Also, fix the function so it actually looks at our ipv6 exit policy.
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 28cd42fee7..758d8f5d87 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -2493,7 +2493,8 @@ connection_exit_connect(edge_connection_t *edge_conn) int socket_error = 0; if ( (!connection_edge_is_rendezvous_stream(edge_conn) && - router_compare_to_my_exit_policy(edge_conn)) || + router_compare_to_my_exit_policy(&edge_conn->base_.addr, + edge_conn->base_.port)) || (tor_addr_family(&conn->addr) == AF_INET6 && ! get_options()->IPv6Exit)) { log_info(LD_EXIT,"%s:%d failed exit policy. Closing.", |