[tor-bugs] #22204 [Core Tor/Tor]: I can't list a relay in my EntryNodes if it doesn't have the Guard flag

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat May 13 09:33:34 UTC 2017


#22204: I can't list a relay in my EntryNodes if it doesn't have the Guard flag
-------------------------------------+------------------------------------
 Reporter:  arma                     |          Owner:  nickm
     Type:  defect                   |         Status:  accepted
 Priority:  Medium                   |      Milestone:  Tor: 0.3.1.x-final
Component:  Core Tor/Tor             |        Version:  Tor: 0.3.0.6
 Severity:  Normal                   |     Resolution:
 Keywords:  030-backport regression  |  Actual Points:
Parent ID:                           |         Points:
 Reviewer:                           |        Sponsor:
-------------------------------------+------------------------------------

Comment (by acceleraTor):

 you may Want To Look into entrynodes.c @
 /**
  * Return true iff <b>node</b> has all the flags needed for us to consider
 it
  * a possible guard when sampling guards.
  */
 static int
 node_is_possible_guard(const node_t *node)
 {
   /* The "GUARDS" set is all nodes in the nodelist for which this
 predicate
    * holds. */

   tor_assert(node);
   return (node->is_possible_guard &&
           node->is_stable &&
           node->is_fast &&
           node->is_valid &&
           node_is_dir(node));
 }

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22204#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list