diff options
author | Roger Dingledine <arma@torproject.org> | 2005-04-01 09:23:51 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-04-01 09:23:51 +0000 |
commit | 1ff62dbd18305ecfc43b0e802e6f2c0349a7884e (patch) | |
tree | 19a1225860f5cd32723f40375136b3dae85862d0 /src/or/circuitbuild.c | |
parent | e786e5dedb8eaf0e4bd43a065c4fc43c1178e577 (diff) | |
download | tor-1ff62dbd18305ecfc43b0e802e6f2c0349a7884e.tar.gz tor-1ff62dbd18305ecfc43b0e802e6f2c0349a7884e.zip |
require exactly 0.0.9.7 for middle hops of testing circs, for now
svn:r3967
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index acec45a535..b91281f25a 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -1258,7 +1258,7 @@ 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 *cutoff) { +excluded_add_obsolete(smartlist_t *sl, const char *atleast, const char *nomore) { routerlist_t *rl; int i; routerinfo_t *router; @@ -1268,7 +1268,8 @@ excluded_add_obsolete(smartlist_t *sl, const char *cutoff) { 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,cutoff)) + if (!tor_version_as_new_as(router->platform, atleast) || + tor_version_as_new_as(router->platform, nomore)) smartlist_add(sl, router); } } @@ -1300,7 +1301,7 @@ static routerinfo_t *choose_good_middle_server(uint8_t purpose, } } if (purpose == CIRCUIT_PURPOSE_TESTING) - excluded_add_obsolete(excluded, "0.0.9.7"); + 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); |