diff options
author | Roger Dingledine <arma@torproject.org> | 2004-12-04 08:56:59 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-12-04 08:56:59 +0000 |
commit | 52676364b9205feea4c3b0c773e3040b86ca7a84 (patch) | |
tree | bb30a65f7e71f1ecbb1b42d7cfa791ad0ac6ce5e | |
parent | 2532e9405e6cbb29e3565e9fefd0d8492c4a9190 (diff) | |
download | tor-52676364b9205feea4c3b0c773e3040b86ca7a84.tar.gz tor-52676364b9205feea4c3b0c773e3040b86ca7a84.zip |
bugfix: router_exit_policy_rejects_all() was broken, so we were
sometimes picking middleman nodes as our last hop, which wasn't
very useful.
svn:r3075
-rw-r--r-- | src/or/rephist.c | 2 | ||||
-rw-r--r-- | src/or/routerlist.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c index 0cba10ec8a..2f1c976f08 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -294,7 +294,7 @@ void rep_hist_dump_stats(time_t now, int severity) upt, upt+downt, uptime*100.0); if (!strmap_isempty(or_history->link_history_map)) { - strlcpy(buffer, " Good extend attempts: ", sizeof(buffer)); + strlcpy(buffer, " Extend attempts: ", sizeof(buffer)); len = strlen(buffer); for (lhist_it = strmap_iter_init(or_history->link_history_map); !strmap_iter_done(lhist_it); diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 91efa0da24..0d85c621d1 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -1020,7 +1020,7 @@ int router_exit_policy_all_routers_reject(uint32_t addr, uint16_t port) { /** Return true iff <b>router</b> does not permit exit streams. */ int router_exit_policy_rejects_all(routerinfo_t *router) { - return router_compare_addr_to_addr_policy(0, 0, router->exit_policy) + return router_compare_addr_to_addr_policy(0, 1, router->exit_policy) == ADDR_POLICY_REJECTED; } |