diff options
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r-- | src/or/connection_or.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index 40dab3e4f0..028f3ded79 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -478,6 +478,8 @@ connection_or_get_by_identity_digest(const char *digest) continue; /* We never prefer obsolete over non-obsolete connections. */ if ( + /* We prefer canonical connections: */ + (!best->is_canonical && conn->is_canonical) || /* We prefer non-obsolete connections: */ (best->_base.or_is_obsolete && !conn->_base.or_is_obsolete) || /* If both have circuits we prefer the newer: */ |