mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Use fmt_and_decorate_addr in extra-info "transport" lines.
Apparently BridgeDB is already expecting transport lines to be formatted thus; see https://trac.torproject.org/projects/tor/ticket/7011#comment:12 ff. It may be that there are no extant IPv6 pluggable transport bridges yet, so this didn't cause a problem.
This commit is contained in:
committed by
Nick Mathewson
parent
5cbf0f2106
commit
4b0a039cb8
+1
-1
@@ -1382,7 +1382,7 @@ pt_get_extra_info_descriptor_string(void)
|
||||
/* If the transport proxy returned "0.0.0.0" as its address, and
|
||||
* we know our external IP address, use it. Otherwise, use the
|
||||
* returned address. */
|
||||
const char *addr_str = fmt_addr(&t->addr);
|
||||
const char *addr_str = fmt_and_decorate_addr(&t->addr);
|
||||
uint32_t external_ip_address = 0;
|
||||
if (tor_addr_is_null(&t->addr) &&
|
||||
router_pick_published_address(get_options(),
|
||||
|
||||
Reference in New Issue
Block a user