aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-04-27 11:27:32 -0400
committerNick Mathewson <nickm@torproject.org>2012-04-27 11:27:32 -0400
commit8f070ecbc000c3ca32ff1467716f777a44d0eda4 (patch)
tree07e0588ae843d62b9a7ff66f2bee5c69cb4c99c7 /src/or/directory.c
parent9dddfe83f3041e1504d2def5622633eb59a9756f (diff)
downloadtor-8f070ecbc000c3ca32ff1467716f777a44d0eda4.tar.gz
tor-8f070ecbc000c3ca32ff1467716f777a44d0eda4.zip
When downloading bridge descs from a bridge authority, always be anonymous
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 6394aece71..3d2b95565c 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -130,8 +130,9 @@ purpose_needs_anonymity(uint8_t dir_purpose, uint8_t router_purpose)
{
if (get_options()->AllDirActionsPrivate)
return 1;
- if (router_purpose == ROUTER_PURPOSE_BRIDGE && can_complete_circuit)
- return 1; /* if no circuits yet, we may need this info to bootstrap. */
+ if (router_purpose == ROUTER_PURPOSE_BRIDGE)
+ return 1; /* if no circuits yet, this might break bootstrapping, but it's
+ * needed to be safe. */
if (dir_purpose == DIR_PURPOSE_UPLOAD_DIR ||
dir_purpose == DIR_PURPOSE_UPLOAD_VOTE ||
dir_purpose == DIR_PURPOSE_UPLOAD_SIGNATURES ||