summaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-07-01 10:08:38 +1000
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-07-01 14:00:20 +1000
commitd3ca6fe475ab5e0cc9c80e0ff984bebe4160f689 (patch)
treece1040253433625e0a773306e45af9558379065f /src/or/routerlist.c
parentb4dcf56768e4b8c27fdade8f5f936dd7c651aeb0 (diff)
downloadtor-d3ca6fe475ab5e0cc9c80e0ff984bebe4160f689.tar.gz
tor-d3ca6fe475ab5e0cc9c80e0ff984bebe4160f689.zip
Call purpose_needs_anonymity in authority_certs_fetch_missing
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 6ad276a913..cae0241343 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -1076,8 +1076,8 @@ authority_certs_fetch_missing(networkstatus_t *status, time_t now,
/* If we've just downloaded a consensus from a directory, re-use that
* directory */
if (rs) {
- /* Certificate fetches are one-hop, unless AllDirActionsPrivate is 1 */
- int get_via_tor = options->AllDirActionsPrivate;
+ int get_via_tor = purpose_needs_anonymity(
+ DIR_PURPOSE_FETCH_CERTIFICATE, 0);
const dir_indirection_t indirection = get_via_tor ? DIRIND_ANONYMOUS
: DIRIND_ONEHOP;
directory_initiate_command_routerstatus(rs,
@@ -1137,8 +1137,8 @@ authority_certs_fetch_missing(networkstatus_t *status, time_t now,
/* If we've just downloaded a consensus from a directory, re-use that
* directory */
if (rs) {
- /* Certificate fetches are one-hop, unless AllDirActionsPrivate is 1 */
- int get_via_tor = options->AllDirActionsPrivate;
+ int get_via_tor = purpose_needs_anonymity(
+ DIR_PURPOSE_FETCH_CERTIFICATE, 0);
const dir_indirection_t indirection = get_via_tor ? DIRIND_ANONYMOUS
: DIRIND_ONEHOP;
directory_initiate_command_routerstatus(rs,