aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-10-11 22:06:01 +0000
committerNick Mathewson <nickm@torproject.org>2006-10-11 22:06:01 +0000
commiteca28f24f51a3b7e59a22002d8119db8a98c781a (patch)
treeb35c2427cc76b50c021863d94f7d481cb9d4d0db /src/or/circuitbuild.c
parent7f3fc70945e8f3286c9701c168fa364003949b3e (diff)
downloadtor-eca28f24f51a3b7e59a22002d8119db8a98c781a.tar
tor-eca28f24f51a3b7e59a22002d8119db8a98c781a.tar.gz
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
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c7
1 files changed, 2 insertions, 5 deletions
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;