summaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2016-03-24 15:00:01 -0400
committerRoger Dingledine <arma@torproject.org>2016-03-24 15:00:01 -0400
commitc4208ef65f58836670dab286bad0289259582124 (patch)
tree50bd5328890cee099128e78d21421bd8270d3f1a /src/or/dirserv.c
parent4f86d75a4bece7768ddb87db0276268666efcf11 (diff)
downloadtor-c4208ef65f58836670dab286bad0289259582124.tar.gz
tor-c4208ef65f58836670dab286bad0289259582124.zip
dir auths only give Guard if they're giving Stable
This change allows us to simplify path selection for clients, and it should have minimal effect in practice since >99% of Guards already have the Stable flag. Implements ticket 18624.
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index a045f3ac55..f012b7bf64 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -2200,7 +2200,7 @@ set_routerstatus_from_routerinfo(routerstatus_t *rs,
rs->is_valid = node->is_valid;
- if (node->is_fast &&
+ if (node->is_fast && node->is_stable &&
((options->AuthDirGuardBWGuarantee &&
routerbw_kb >= options->AuthDirGuardBWGuarantee/1000) ||
routerbw_kb >= MIN(guard_bandwidth_including_exits_kb,