[or-cvs] bugfix: router_exit_policy_rejects_all() was broken, so we ...
Roger Dingledine
arma at seul.org
Sat Dec 4 08:57:01 UTC 2004
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
rephist.c routerlist.c
Log Message:
bugfix: router_exit_policy_rejects_all() was broken, so we were
sometimes picking middleman nodes as our last hop, which wasn't
very useful.
Index: rephist.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/rephist.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- rephist.c 1 Dec 2004 03:48:13 -0000 1.47
+++ rephist.c 4 Dec 2004 08:56:59 -0000 1.48
@@ -294,7 +294,7 @@
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);
Index: routerlist.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.196
retrieving revision 1.197
diff -u -d -r1.196 -r1.197
--- routerlist.c 4 Dec 2004 01:14:36 -0000 1.196
+++ routerlist.c 4 Dec 2004 08:56:59 -0000 1.197
@@ -1020,7 +1020,7 @@
/** 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;
}
More information about the tor-commits
mailing list