[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r15571: Make directory servers include the X-Your-Address-Is: http h (tor/trunk/src/or)
Author: arma
Date: 2008-06-30 17:52:39 -0400 (Mon, 30 Jun 2008)
New Revision: 15571
Modified:
tor/trunk/src/or/connection_edge.c
Log:
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.
Modified: tor/trunk/src/or/connection_edge.c
===================================================================
--- tor/trunk/src/or/connection_edge.c 2008-06-30 21:23:45 UTC (rev 15570)
+++ tor/trunk/src/or/connection_edge.c 2008-06-30 21:52:39 UTC (rev 15571)
@@ -2721,9 +2721,9 @@
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;