diff options
author | Roger Dingledine <arma@torproject.org> | 2007-01-27 19:40:49 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-01-27 19:40:49 +0000 |
commit | d8d074f2e5de809a561260f4374f4dadde8d0942 (patch) | |
tree | 0944cf6bfb4090976b2b08fad6cce5f20824f06c /src/or/circuitbuild.c | |
parent | add7d7af195109a06c46c6072b3a4faf4f6ce363 (diff) | |
download | tor-d8d074f2e5de809a561260f4374f4dadde8d0942.tar.gz tor-d8d074f2e5de809a561260f4374f4dadde8d0942.zip |
If the user asks to use invalid exit nodes, be willing to use the
unstable ones.
svn:r9441
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 416017ccb4..becfaf89fa 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -1187,10 +1187,8 @@ choose_good_exit_server_general(routerlist_t *dir, int need_uptime, n_supported[i] = -1; continue; /* skip routers that are not suitable */ } - if (!router->is_valid && - (!(options->_AllowInvalid & ALLOW_INVALID_EXIT) || - router_is_unreliable(router, 1, 1, 0))) { - /* if it's invalid, and either we don't want it or it's unsuitable */ + if (!(router->is_valid || options->_AllowInvalid & ALLOW_INVALID_EXIT)) { + /* if it's invalid and we don't want it */ n_supported[i] = -1; // log_fn(LOG_DEBUG,"Skipping node %s (index %d) -- invalid router.", // router->nickname, i); |