diff options
-rw-r--r-- | src/or/routerlist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 2cb3dd2e0f..2873e1d742 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -944,7 +944,8 @@ router_get_by_nickname(const char *nickname, int warn_if_unnamed) return router; else { ++n_matches; - best_match = router; + if (n_matches <= 1 || router->is_running) + best_match = router; } } else if (maybedigest && !memcmp(digest, router->cache_info.identity_digest, DIGEST_LEN) |