diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-07-15 12:58:13 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-07-15 13:04:12 -0400 |
commit | 6aef89bda4800384eddf79e42d965c2b011acdb4 (patch) | |
tree | 59bdfe03904c596f884bede76cdddecaa84c9641 /src/or/routerlist.c | |
parent | f40df02f3e26df792b7e364d1b6ea5dab167405c (diff) | |
download | tor-6aef89bda4800384eddf79e42d965c2b011acdb4.tar.gz tor-6aef89bda4800384eddf79e42d965c2b011acdb4.zip |
Remove compare_addr_to_node_policy
Instead, use compare_tor_addr_to_node_policy everywhere.
One advantage of this is that compare_tor_addr_to_node_policy can
better distinguish 0.0.0.0 from "unknown", which caused a nasty bug
with microdesc users.
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index c0a233ceed..2fff4c9074 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -4028,7 +4028,7 @@ routerlist_retry_directory_downloads(time_t now) /** Return 1 if all running sufficiently-stable routers we can use will reject * addr:port, return 0 if any might accept it. */ int -router_exit_policy_all_nodes_reject(uint32_t addr, uint16_t port, +router_exit_policy_all_nodes_reject(const tor_addr_t *addr, uint16_t port, int need_uptime) { /* XXXX MOVE */ addr_policy_result_t r; @@ -4037,7 +4037,7 @@ router_exit_policy_all_nodes_reject(uint32_t addr, uint16_t port, if (node->is_running && !node_is_unreliable(node, need_uptime, 0, 0)) { - r = compare_addr_to_node_policy(addr, port, node); + r = compare_tor_addr_to_node_policy(addr, port, node); if (r != ADDR_POLICY_REJECTED && r != ADDR_POLICY_PROBABLY_REJECTED) return 0; /* this one could be ok. good enough. */ |