diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-05-01 11:51:22 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-05-01 11:51:22 -0400 |
commit | 1bbd3811c1c98e6a630ab96f15a376910a576626 (patch) | |
tree | f54b5c97109877aca1264e117a71b1f056f8d853 /src/or/directory.c | |
parent | 9da17ad410b0b510c2e8cdaa2168fd020f3dc8c2 (diff) | |
parent | ce450bddb7b66e73e34eec3844623884cbbcc27c (diff) | |
download | tor-1bbd3811c1c98e6a630ab96f15a376910a576626.tar.gz tor-1bbd3811c1c98e6a630ab96f15a376910a576626.zip |
Merge remote-tracking branch 'public/bug10849_025'
Conflicts:
src/or/config.c
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 8070a76a55..76cb8fa0bc 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -338,8 +338,6 @@ should_use_directory_guards(const or_options_t *options) if (options->DownloadExtraInfo || options->FetchDirInfoEarly || options->FetchDirInfoExtraEarly || options->FetchUselessDescriptors) return 0; - if (! options->PreferTunneledDirConns) - return 0; return 1; } @@ -834,6 +832,7 @@ directory_command_should_use_begindir(const or_options_t *options, int or_port, uint8_t router_purpose, dir_indirection_t indirection) { + (void) router_purpose; if (!or_port) return 0; /* We don't know an ORPort -- no chance. */ if (indirection == DIRIND_DIRECT_CONN || indirection == DIRIND_ANON_DIRPORT) @@ -842,9 +841,6 @@ directory_command_should_use_begindir(const or_options_t *options, if (!fascist_firewall_allows_address_or(addr, or_port) || 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) - return 0; /* We prefer to avoid using begindir conns. Fine. */ return 1; } |