diff options
author | Fernando Fernandez Mancera <ffmancera@riseup.net> | 2018-01-22 15:20:17 +0100 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2018-01-31 16:12:13 -0500 |
commit | 33d9889a2bdd611bcc255c68c43d60b8919ab663 (patch) | |
tree | d33dc1162d7f944762b5845ce8739a41cfae4a62 /src/or/channeltls.c | |
parent | 1f4a73133cf864774c017e2c50b347727519c18f (diff) | |
download | tor-33d9889a2bdd611bcc255c68c43d60b8919ab663.tar.gz tor-33d9889a2bdd611bcc255c68c43d60b8919ab663.zip |
channel_tls_get_remote_addr_method now returns real_addr.
The accurate address of a connection is real_addr, not the addr member.
channel_tls_get_remote_addr_method() now returns real_addr instead.
Fixes #24952; bugfix on 707c1e2 in 0.2.4.11-alpha.
Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
Diffstat (limited to 'src/or/channeltls.c')
-rw-r--r-- | src/or/channeltls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/channeltls.c b/src/or/channeltls.c index 09cca95b64..890646989e 100644 --- a/src/or/channeltls.c +++ b/src/or/channeltls.c @@ -514,7 +514,7 @@ channel_tls_get_remote_addr_method(channel_t *chan, tor_addr_t *addr_out) tor_assert(addr_out); if (tlschan->conn) { - tor_addr_copy(addr_out, &(TO_CONN(tlschan->conn)->addr)); + tor_addr_copy(addr_out, &(tlschan->conn->real_addr)); rv = 1; } else tor_addr_make_unspec(addr_out); |