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 *.
This commit is contained in:
Nick Mathewson 2010-10-20 13:49:38 -04:00
parent c2323f1340
commit 2849a95691
2 changed files with 6 additions and 1 deletions

5
changes/caches_if_exit Normal file
View File

@ -0,0 +1,5 @@
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.

View File

@ -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);
}