aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-06-30 21:52:39 +0000
committerRoger Dingledine <arma@torproject.org>2008-06-30 21:52:39 +0000
commit45742ce0b022959852214dcd44765567198d5c45 (patch)
treecaf4f7d217d49a52d87e075d74057ede3075bfbb
parent158ee8eafe904439a55cf4275b57b927523d104d (diff)
downloadtor-45742ce0b022959852214dcd44765567198d5c45.tar.gz
tor-45742ce0b022959852214dcd44765567198d5c45.zip
Make directory servers include the X-Your-Address-Is: http header in
their responses even for begin_dir conns. Now clients who only ever use begin_dir connections still have a way to learn their IP address. Should fix bug 737. Reported by goldy. svn:r15571
-rw-r--r--src/or/connection_edge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index e6a6dd23d6..96a9bb6c89 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -2721,9 +2721,9 @@ connection_exit_connect_dir(edge_connection_t *exitconn)
dirconn = TO_DIR_CONN(connection_new(CONN_TYPE_DIR, AF_INET));
- dirconn->_base.addr = 0x7f000001;
+ dirconn->_base.addr = exitconn->_base.addr;
dirconn->_base.port = 0;
- dirconn->_base.address = tor_strdup("Tor network");
+ dirconn->_base.address = tor_strdup(circ->p_conn->_base.address);
dirconn->_base.type = CONN_TYPE_DIR;
dirconn->_base.purpose = DIR_PURPOSE_SERVER;
dirconn->_base.state = DIR_CONN_STATE_SERVER_COMMAND_WAIT;