summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-04-27 10:26:09 +0000
committerRoger Dingledine <arma@torproject.org>2007-04-27 10:26:09 +0000
commit397afcc3f667f02de3599ab3ba53638b484853b7 (patch)
treef665acb174529ea2bb1f128f0ace2b4c2315e58a /src/or/router.c
parent3d00738ec72e87d5d67f1c44f0a73217650a6a65 (diff)
downloadtor-397afcc3f667f02de3599ab3ba53638b484853b7.tar.gz
tor-397afcc3f667f02de3599ab3ba53638b484853b7.zip
Make PreferTunneledDirConns and TunnelDirConns work even when
we have no cached directory info. This means Tor clients can now do all of their connections protected by TLS. svn:r10035
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c
index ad7ad96a24..0dfe62d62d 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -507,7 +507,8 @@ consider_testing_reachability(int test_or, int test_dir)
CONN_TYPE_DIR, me->addr, me->dir_port,
DIR_PURPOSE_FETCH_SERVERDESC)) {
/* ask myself, via tor, for my server descriptor. */
- directory_initiate_command(me->address, me->addr, me->dir_port,
+ directory_initiate_command(me->address, me->addr,
+ me->or_port, me->dir_port,
0, me->cache_info.identity_digest,
DIR_PURPOSE_FETCH_SERVERDESC,
1, "authority", NULL, 0);