bug 4115: make bridges use begindir for their dir fetches

removes another avenue for enumerating bridges.
This commit is contained in:
Roger Dingledine
2011-09-28 14:50:43 -04:00
parent 1c2e4d1336
commit 0b5d2646d5
2 changed files with 8 additions and 2 deletions
+1 -2
View File
@@ -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)