diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-02-04 22:35:58 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-02-04 22:35:58 +0000 |
commit | 17adfa9dfd749285085cdb2084b8492939d328be (patch) | |
tree | 50ac1a74e997df6e33c1f7a6a2d2dc0d865603ea /src/or | |
parent | 8e87357a89971e04f3aaa074df3b396247199185 (diff) | |
download | tor-17adfa9dfd749285085cdb2084b8492939d328be.tar tor-17adfa9dfd749285085cdb2084b8492939d328be.tar.gz |
log when exit situation is hopeless.
svn:r1057
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/onion.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/onion.c b/src/or/onion.c index b80734cfb..3a4fcd649 100644 --- a/src/or/onion.c +++ b/src/or/onion.c @@ -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]); |