diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-10-20 13:49:38 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-10-20 13:49:38 -0400 |
commit | 2849a95691c002108666eb414ff497bf93349e7d (patch) | |
tree | 163da85c6a1565c1c9cd52aa59cff5dfe5007d73 /src/or/dirserv.c | |
parent | c2323f1340449d135ce698631cefbd1e546a9fe3 (diff) | |
download | tor-2849a95691c002108666eb414ff497bf93349e7d.tar.gz tor-2849a95691c002108666eb414ff497bf93349e7d.zip |
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 *.
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 8ae03424a2..8d0ec981a7 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -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); } |