Commit 2849a956 authored by Nick Mathewson's avatar Nick Mathewson 🐘
Browse files

Add a ! to directory_caches_dir_info() to fix a logic error

We want to fetch directory info more aggressively if we need it to
refuseunknownexits.  Thus, we'll want it if our exit policy is _NOT_
reject *.
parent c2323f13
Loading
Loading
Loading
Loading

changes/caches_if_exit

0 → 100644
+5 −0
Changes for changes/caches_if_exit: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
  o Minor bugfixes:
    - Fix a logic error where servers that _didn't_ act as exits would
      try to keep their server lists more aggressively up to date than
      exits, when it was supposed to be the other way around. Bugfix
      on 0.2.2.17-alpha.
+1 −1
Changes for src/or/dirserv.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -1213,7 +1213,7 @@ directory_caches_dir_info(or_options_t *options)
    return 0;
  /* We need an up-to-date view of network info if we're going to try to
   * block exit attempts from unknown relays. */
  return router_my_exit_policy_is_reject_star() &&
  return ! router_my_exit_policy_is_reject_star() &&
    should_refuse_unknown_exits(options);
}