diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-03-11 17:20:43 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-03-11 17:20:43 -0400 |
commit | 07e26005a6cb7e47f1f90fcf6a377dfaaaa56789 (patch) | |
tree | 995e5e2e2072f1ff15eb1e78dfa5c8f9cb15d18d /src/or/config.c | |
parent | 051b1e8ac4114fb23904cdf8dead72d585904e0a (diff) | |
download | tor-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.c | 3 |
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 { |