For belt-and-suspenders, relays that don't set Address in their config

now avoid using begin_dir for all direct connections.


svn:r19296
This commit is contained in:
Roger Dingledine
2009-04-11 19:40:42 +00:00
parent 419d158c74
commit c024928b63
2 changed files with 8 additions and 6 deletions
+2 -1
View File
@@ -681,7 +681,8 @@ 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))
directory_fetches_from_authorities(options) ||
(server_mode(options) && !options->Address))
return 0; /* We're firewalled or are acting like a relay -- also no. */
if (!options->TunnelDirConns &&
router_purpose != ROUTER_PURPOSE_BRIDGE)