aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2011-09-28 14:50:43 -0400
committerRoger Dingledine <arma@torproject.org>2011-09-28 14:50:43 -0400
commit0b5d2646d56fe351b8b2b4bc97bbad30cb34b6d4 (patch)
treeae059342c1891e2c208ace3b890492bcb06f9521 /src/or/directory.c
parent1c2e4d13366aee5f0107696e4d621b924a6f39a6 (diff)
downloadtor-0b5d2646d56fe351b8b2b4bc97bbad30cb34b6d4.tar
tor-0b5d2646d56fe351b8b2b4bc97bbad30cb34b6d4.tar.gz
bug 4115: make bridges use begindir for their dir fetches
removes another avenue for enumerating bridges.
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 52fec6b61..e3cc70f91 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -785,8 +785,7 @@ directory_command_should_use_begindir(or_options_t *options,
return 0; /* We don't know an ORPort -- no chance. */
if (!anonymized_connection)
if (!fascist_firewall_allows_address_or(addr, or_port) ||
- directory_fetches_from_authorities(options) ||
- (server_mode(options) && !options->Address))
+ directory_fetches_from_authorities(options))
return 0; /* We're firewalled or are acting like a relay -- also no. */
if (!options->TunnelDirConns &&
router_purpose != ROUTER_PURPOSE_BRIDGE)