summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-03-11 17:20:43 -0400
committerNick Mathewson <nickm@torproject.org>2013-03-11 17:20:43 -0400
commit07e26005a6cb7e47f1f90fcf6a377dfaaaa56789 (patch)
tree995e5e2e2072f1ff15eb1e78dfa5c8f9cb15d18d /src/or/config.c
parent051b1e8ac4114fb23904cdf8dead72d585904e0a (diff)
downloadtor-07e26005a6cb7e47f1f90fcf6a377dfaaaa56789.tar.gz
tor-07e26005a6cb7e47f1f90fcf6a377dfaaaa56789.zip
Treat a changed IPv6 ORPort like an IPv4 one in retry_all_listeners()
Fix for bug 6026
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 15138f9d7b..1c48c66167 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -5561,7 +5561,8 @@ get_first_listener_addrport_string(int listener_type)
to iterate all listener connections and find out in which
port it ended up listening: */
if (cfg->port == CFG_AUTO_PORT) {
- port = router_get_active_listener_port_by_type(listener_type);
+ port = router_get_active_listener_port_by_type_af(listener_type,
+ tor_addr_family(&cfg->addr));
if (!port)
return NULL;
} else {