diff options
author | David Fifield <david@bamsoftware.com> | 2012-10-10 17:11:03 -0700 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-10-10 22:25:29 -0400 |
commit | 4b0a039cb83f1780a8532a46b2529ff0a580c902 (patch) | |
tree | 01fc0fb928e8d01e24d14b37e2ded9c8ad6e7a6e | |
parent | 5cbf0f2106e85fe69b6ce0d185d62755c2997220 (diff) | |
download | tor-4b0a039cb83f1780a8532a46b2529ff0a580c902.tar.gz tor-4b0a039cb83f1780a8532a46b2529ff0a580c902.zip |
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.
-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 cf3ef3957b..ed4a295c72 100644 --- a/src/or/transports.c +++ b/src/or/transports.c @@ -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(), |