diff options
author | Roger Dingledine <arma@torproject.org> | 2005-05-17 19:46:43 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-05-17 19:46:43 +0000 |
commit | 9abef5e483d731c56543dbacfdab2ab4616b99c9 (patch) | |
tree | 5fc71ed9cc215fa724d318741b893e7477996322 /src | |
parent | b7d6b8a39758b49a276fac9d83a8d925d00ae37d (diff) | |
download | tor-9abef5e483d731c56543dbacfdab2ab4616b99c9.tar.gz tor-9abef5e483d731c56543dbacfdab2ab4616b99c9.zip |
allow the middle hop of the testing circuit to be running
any version, now that most of them have the bugfix to let
them connect to unknown servers.
svn:r4263
Diffstat (limited to 'src')
-rw-r--r-- | src/or/circuitbuild.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 06e7cd09f7..d11ebd3123 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -1293,24 +1293,6 @@ void onion_append_to_cpath(crypt_path_t **head_ptr, crypt_path_t *new_hop) } } -/** Add to sl all routers with platform version less than cutoff. */ -static void -excluded_add_obsolete(smartlist_t *sl, const char *atleast, const char *nomore) { - routerlist_t *rl; - int i; - routerinfo_t *router; - - router_get_routerlist(&rl); - if (!rl) return; - - for (i = 0; i < smartlist_len(rl->routers); ++i) { /* iterate over routers */ - router = smartlist_get(rl->routers, i); - if (!tor_version_as_new_as(router->platform, atleast) || - tor_version_as_new_as(router->platform, nomore)) - smartlist_add(sl, router); - } -} - static routerinfo_t *choose_good_middle_server(uint8_t purpose, cpath_build_state_t *state, crypt_path_t *head, @@ -1337,8 +1319,6 @@ static routerinfo_t *choose_good_middle_server(uint8_t purpose, routerlist_add_family(excluded, r); } } - if (purpose == CIRCUIT_PURPOSE_TESTING) - excluded_add_obsolete(excluded, "0.0.9.7", "0.0.9.10"); choice = router_choose_random_node(NULL, get_options()->ExcludeNodes, excluded, state->need_uptime, state->need_capacity, get_options()->_AllowUnverified & ALLOW_UNVERIFIED_MIDDLE, 0); |