From eca28f24f51a3b7e59a22002d8119db8a98c781a Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 11 Oct 2006 22:06:01 +0000 Subject: r9004@totoro: nickm | 2006-10-11 18:05:24 -0400 Add client support for a 'BadExit' flag, so authorities can say "Server X is a poor choise for your nytimes.com connections, as it seems to direct them to HoorayForMao.com or (more likely) WouldYouLikeToBuyTheseFineEncyclopedias.com" svn:r8690 --- src/or/circuitbuild.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/or/circuitbuild.c') diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 878c20f25..8d76e6a34 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -1165,12 +1165,9 @@ choose_good_exit_server_general(routerlist_t *dir, int need_uptime, */ continue; } - if (!router->is_running) { + if (!router->is_running || router->is_bad_exit) { n_supported[i] = -1; -// log_fn(LOG_DEBUG, -// "Skipping node %s (index %d) -- directory says it's not running.", -// router->nickname, i); - continue; /* skip routers that are known to be down */ + continue; /* skip routers that are known to be down or bad exits */ } if (router_is_unreliable(router, need_uptime, need_capacity, 0)) { n_supported[i] = -1; -- cgit v1.2.3