mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
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:
parent
c2323f1340
commit
2849a95691
5
changes/caches_if_exit
Normal file
5
changes/caches_if_exit
Normal 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.
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user