mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 06:35:28 +01:00
log when exit situation is hopeless.
svn:r1057
This commit is contained in:
parent
8e87357a89
commit
17adfa9dfd
1 changed files with 3 additions and 0 deletions
|
@ -349,6 +349,9 @@ static routerinfo_t *choose_good_exit_server(routerlist_t *dir)
|
|||
} else {
|
||||
/* Either there are no pending connections, or no routers even seem to
|
||||
* possibly support any of them. Choose a router at random. */
|
||||
if (best_maybe_support == -1) {
|
||||
log(LOG_WARN, "All routers are down or middleman -- choosing a doomed exit at random.");
|
||||
}
|
||||
for(i = best_maybe_support_idx; i < dir->n_routers; i++)
|
||||
if(n_supported[i] != -1)
|
||||
smartlist_add(sl, dir->routers[i]);
|
||||
|
|
Loading…
Add table
Reference in a new issue