aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index d3e582ce7b..261cbd1034 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -372,7 +372,8 @@ directory_initiate_command(const char *address, uint32_t addr,
{
dir_connection_t *conn;
or_options_t *options = get_options();
- int want_to_tunnel = options->TunnelDirConns && supports_begindir;
+ int want_to_tunnel = options->TunnelDirConns && supports_begindir &&
+ router_get_by_digest(digest);
tor_assert(address);
tor_assert(addr);