summaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@persephoneslair.org>2012-10-10 18:53:38 -0700
committerAndrea Shepard <andrea@persephoneslair.org>2012-10-10 18:53:38 -0700
commit8b36d4cc2ab95acd4c2c7203afb29a051a38c5c9 (patch)
tree92eabec1394092735e8b6e47f664f0094b76e6be /src/or/dirserv.c
parentec97319464aab204740acb013b504abb0e13d989 (diff)
parentbd28322d3815a03ca04beb6d00052d613dbe226f (diff)
downloadtor-8b36d4cc2ab95acd4c2c7203afb29a051a38c5c9.tar.gz
tor-8b36d4cc2ab95acd4c2c7203afb29a051a38c5c9.zip
Merge branch 'bug6816_squashed_nowarn' of git://git.torproject.org/nickm/tor
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 0d98324bfd..1480cb60dd 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -8,6 +8,8 @@
#include "buffers.h"
#include "config.h"
#include "confparse.h"
+#include "channel.h"
+#include "channeltls.h"
#include "connection.h"
#include "connection_or.h"
#include "control.h"
@@ -3410,8 +3412,8 @@ dirserv_single_reachability_test(time_t now, routerinfo_t *router)
log_debug(LD_OR,"Testing reachability of %s at %s:%u.",
router->nickname, router->address, router->or_port);
tor_addr_from_ipv4h(&router_addr, router->addr);
- connection_or_connect(&router_addr, router->or_port,
- router->cache_info.identity_digest);
+ channel_tls_connect(&router_addr, router->or_port,
+ router->cache_info.identity_digest);
/* Possible IPv6. */
if (get_options()->AuthDirHasIPv6Connectivity == 1 &&
@@ -3421,8 +3423,8 @@ dirserv_single_reachability_test(time_t now, routerinfo_t *router)
router->nickname,
tor_addr_to_str(addrstr, &router->ipv6_addr, sizeof(addrstr), 1),
router->ipv6_orport);
- connection_or_connect(&router->ipv6_addr, router->ipv6_orport,
- router->cache_info.identity_digest);
+ channel_tls_connect(&router->ipv6_addr, router->ipv6_orport,
+ router->cache_info.identity_digest);
}
}