mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 22:47:12 +01:00
when we're trying to build a circuit and we're being picky about what
sort we get but there aren't any suitable servers, try being less picky rather than simply failing. svn:r4867
This commit is contained in:
parent
a74ad8efea
commit
6577e08e38
1 changed files with 2 additions and 0 deletions
|
@ -1168,6 +1168,8 @@ choose_good_exit_server_general(routerlist_t *dir, int need_uptime,
|
||||||
smartlist_t *needed_ports = circuit_get_unhandled_ports(time(NULL));
|
smartlist_t *needed_ports = circuit_get_unhandled_ports(time(NULL));
|
||||||
|
|
||||||
if (best_support == -1) {
|
if (best_support == -1) {
|
||||||
|
if (need_uptime || need_capacity)
|
||||||
|
return choose_good_exit_server_general(dir, 0, 0);
|
||||||
log(LOG_NOTICE, "All routers are down or middleman -- choosing a doomed exit at random.");
|
log(LOG_NOTICE, "All routers are down or middleman -- choosing a doomed exit at random.");
|
||||||
}
|
}
|
||||||
for (try = 0; try < 2; try++) {
|
for (try = 0; try < 2; try++) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue