summaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 9102e490a6..12b2afe908 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -847,7 +847,9 @@ static routerinfo_t *choose_good_exit_server_general(routerlist_t *dir)
continue; /* skip routers that are known to be down */
}
if(!router->is_verified &&
- !(options._AllowUnverified & ALLOW_UNVERIFIED_EXIT)) {
+ (!(options._AllowUnverified & ALLOW_UNVERIFIED_EXIT) ||
+ router_is_unreliable_router(router, 1, 1))) {
+ /* if it's unverified, and either we don't want it or it's unsuitable */
n_supported[i] = -1;
log_fn(LOG_DEBUG,"Skipping node %s (index %d) -- unverified router.",
router->nickname, i);