aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-01-03 18:20:37 +1100
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-01-29 07:15:53 +1100
commit16486662038de53c482cd6f50a30505f2bf20453 (patch)
tree9f8a007f493b0e693737092abcc2998e8a19401d /src/or/router.c
parentc3cc8e16e9655ffcaead811675c360b6764f2992 (diff)
downloadtor-16486662038de53c482cd6f50a30505f2bf20453.tar.gz
tor-16486662038de53c482cd6f50a30505f2bf20453.zip
Choose bridge addresses by IPv4/IPv6 preferences
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c
index ba32d77fd1..d4131992aa 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -1244,14 +1244,15 @@ consider_testing_reachability(int test_or, int test_dir)
extend_info_free(ei);
}
+ /* XXX IPv6 self testing */
tor_addr_from_ipv4h(&addr, me->addr);
if (test_dir && !check_whether_dirport_reachable() &&
!connection_get_by_type_addr_port_purpose(
CONN_TYPE_DIR, &addr, me->dir_port,
DIR_PURPOSE_FETCH_SERVERDESC)) {
/* ask myself, via tor, for my server descriptor. */
- directory_initiate_command(&addr,
- me->or_port, me->dir_port,
+ directory_initiate_command(&addr, me->or_port,
+ &addr, me->dir_port,
me->cache_info.identity_digest,
DIR_PURPOSE_FETCH_SERVERDESC,
ROUTER_PURPOSE_GENERAL,