aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-10-17 11:23:26 -0400
committerNick Mathewson <nickm@torproject.org>2012-10-17 11:23:26 -0400
commit26946c659b5abdc38fd4dc8cd4b4659aadcf05f0 (patch)
tree9c5e5979f97991046ea5d4ba318c2dc8d3f84fd0 /src/or/connection_edge.c
parent898bd1ae8f1eeb880eaaeba2caa1cda435a1ac5b (diff)
downloadtor-26946c659b5abdc38fd4dc8cd4b4659aadcf05f0.tar.gz
tor-26946c659b5abdc38fd4dc8cd4b4659aadcf05f0.zip
Restore the 'address' value of tunneled connections
When we merged the channel code, we made the 'address' field of linked directory connections created with begindir (and their associated edge connections) contain an address:port string, when they should only have contained the address part. This patch also tweaks the interface to the get_descr method of channels so that it takes a set of flags rather than a single flag.
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 53b57ebffe..4d528a810e 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -3105,7 +3105,7 @@ connection_exit_begin_conn(cell_t *cell, circuit_t *circ)
* we might already have corrected base_.addr[ess] for the relay's
* canonical IP address. */
if (or_circ && or_circ->p_chan)
- address = tor_strdup(channel_get_actual_remote_descr(or_circ->p_chan));
+ address = tor_strdup(channel_get_actual_remote_address(or_circ->p_chan));
else
address = tor_strdup("127.0.0.1");
port = 1; /* XXXX This value is never actually used anywhere, and there