diff options
author | Roger Dingledine <arma@torproject.org> | 2016-11-16 16:13:03 -0500 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2016-11-16 16:13:03 -0500 |
commit | 3bb40b213b26467df2604023ae29d915dc740128 (patch) | |
tree | 91e51fc39ee26198b5ca161272daf1732cf0420d /src/or/transports.c | |
parent | caf7422871f058269b6b53e279463a130a372fc1 (diff) | |
download | tor-3bb40b213b26467df2604023ae29d915dc740128.tar.gz tor-3bb40b213b26467df2604023ae29d915dc740128.zip |
refactor router_pick_published_address to have another arg
no change in behavior except fewer log entries in the case where we use
a cached result.
Diffstat (limited to 'src/or/transports.c')
-rw-r--r-- | src/or/transports.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/transports.c b/src/or/transports.c index be77c871c4..7a52b737e4 100644 --- a/src/or/transports.c +++ b/src/or/transports.c @@ -1611,7 +1611,7 @@ pt_get_extra_info_descriptor_string(void) uint32_t external_ip_address = 0; if (tor_addr_is_null(&t->addr) && router_pick_published_address(get_options(), - &external_ip_address) >= 0) { + &external_ip_address, 0) >= 0) { tor_addr_t addr; tor_addr_from_ipv4h(&addr, external_ip_address); addrport = fmt_addrport(&addr, t->port); |