diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2014-10-26 20:56:15 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-10-28 14:07:08 -0400 |
commit | f1ebe6bda4f541a54648d02e2d51fc9073c3786d (patch) | |
tree | 73b5e330513a6729bbcc1a6506419af2520d1b2f /src/or/routerlist.c | |
parent | 2c884fd8cc0a7a8c42003e10b5033deb5a7d6d99 (diff) | |
download | tor-f1ebe6bda4f541a54648d02e2d51fc9073c3786d.tar.gz tor-f1ebe6bda4f541a54648d02e2d51fc9073c3786d.zip |
Fix smartlist_choose_node_by_bandwidth() so that it rejects ORs with BadExit flag.
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 4d117cb86d..642b971552 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -2202,7 +2202,7 @@ smartlist_choose_node_by_bandwidth(const smartlist_t *sl, uint32_t this_bw = 0; i = node_sl_idx; - is_exit = node->is_exit; + is_exit = node_is_good_exit(node); is_guard = node->is_possible_guard; if (node->rs) { if (node->rs->has_bandwidth) { |