]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
dir auths only give Guard if they're giving Stable
authorRoger Dingledine <arma@torproject.org>
Thu, 24 Mar 2016 19:00:01 +0000 (15:00 -0400)
committerRoger Dingledine <arma@torproject.org>
Thu, 24 Mar 2016 19:00:01 +0000 (15:00 -0400)
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.

changes/feature18624 [new file with mode: 0644]
src/or/dirserv.c

diff --git a/changes/feature18624 b/changes/feature18624
new file mode 100644 (file)
index 0000000..a3be90f
--- /dev/null
@@ -0,0 +1,7 @@
+  o Minor features:
+    - Directory authorities now only give the Guard flag to a relay if
+      they are also giving it the Stable flag. 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.
+
index a045f3ac5502150fdb34af978c0a40dff740ad55..f012b7bf644ed57e38016d9e8add1fedb0546cd4 100644 (file)
@@ -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,