diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-09-07 23:21:18 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-09-07 23:21:18 -0400 |
commit | 7988596f66874fd36d1c99bf39736e4b41609a6b (patch) | |
tree | 8bdd66158567b2102cfbd6b4f84c536b2efb7c7a /src/or/routerlist.c | |
parent | 2cde6658b5998561e9e8a9377976db87690a2387 (diff) | |
download | tor-7988596f66874fd36d1c99bf39736e4b41609a6b.tar.gz tor-7988596f66874fd36d1c99bf39736e4b41609a6b.zip |
Remove version_supports checks for versions before 0.2.2.
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 3aea606207..ce21e991e5 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -995,7 +995,7 @@ router_get_my_share_of_directory_requests(double *v2_share_out, } } - if (rs->version_supports_v3_dir) { + { sl_last_total_weighted_bw = 0; router_pick_directory_server(V3_DIRINFO, pds_flags); if (sl_last_total_weighted_bw != 0) { @@ -1127,12 +1127,6 @@ router_pick_directory_server_impl(dirinfo_type_t type, int flags) continue; if (requireother && router_digest_is_me(node->identity)) continue; - if (type & V3_DIRINFO) { - if (!(status->version_supports_v3_dir || - router_digest_is_trusted_dir_type(node->identity, - V3_DIRINFO))) - continue; - } is_trusted = router_digest_is_trusted_dir(node->identity); if ((type & V2_DIRINFO) && !(node->rs->is_v2_dir || is_trusted)) continue; @@ -1155,7 +1149,6 @@ router_pick_directory_server_impl(dirinfo_type_t type, int flags) is_overloaded = status->last_dir_503_at + DIR_503_TIMEOUT > now; if (prefer_tunnel && - status->version_supports_begindir && (!fascistfirewall || fascist_firewall_allows_address_or(&addr, status->or_port))) smartlist_add(is_trusted ? trusted_tunnel : @@ -4159,11 +4152,6 @@ add_trusted_dir_server(const char *nickname, const char *address, ent->fake_status.dir_port = ent->dir_port; ent->fake_status.or_port = ent->or_port; - if (ent->or_port) - ent->fake_status.version_supports_begindir = 1; - - ent->fake_status.version_supports_conditional_consensus = 1; - smartlist_add(trusted_dir_servers, ent); router_dir_info_changed(); return ent; |