aboutsummaryrefslogtreecommitdiff
path: root/src/or/nodelist.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2011-11-28 13:51:56 +0100
committerNick Mathewson <nickm@torproject.org>2011-11-30 11:55:46 -0500
commit39ec781b8fa164dd2b68cec349f2b38d81fa3cbb (patch)
tree3601cae0bb4294dd1155a2a3856d59c7196cb3ab /src/or/nodelist.c
parent3b51b326e4fb71b7ec75c5c8ef5a4869f5c4acc1 (diff)
downloadtor-39ec781b8fa164dd2b68cec349f2b38d81fa3cbb.tar.gz
tor-39ec781b8fa164dd2b68cec349f2b38d81fa3cbb.zip
Make the router_get_*_orport interface consistent with node_*.
Diffstat (limited to 'src/or/nodelist.c')
-rw-r--r--src/or/nodelist.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/nodelist.c b/src/or/nodelist.c
index 921ce1ad34..7d634a138e 100644
--- a/src/or/nodelist.c
+++ b/src/or/nodelist.c
@@ -740,8 +740,7 @@ void
node_get_pref_ipv6_addr(const node_t *node, tor_addr_port_t *ap_out)
{
if (node->ri) {
- tor_addr_copy(&ap_out->addr, &node->ri->ipv6_addr);
- ap_out->port = node->ri->ipv6_orport;
+ router_get_pref_ipv6_orport(node->ri, ap_out);
} else if (node->rs) {
/* No IPv6 in routerstatus_t yet. XXXprop186 ok for private
bridges but needs fixing */