aboutsummaryrefslogtreecommitdiff
path: root/src/or/dnsserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-07-08 15:15:59 -0400
committerNick Mathewson <nickm@torproject.org>2011-07-19 02:02:11 -0400
commit424063e3b2b882d72943bda41279bd29a711ec55 (patch)
treed40939c490c7069e46080f78b5eb158d9edba589 /src/or/dnsserv.c
parentaef30547dc4aa77fc79517a6dcad7712b59af371 (diff)
downloadtor-424063e3b2b882d72943bda41279bd29a711ec55.tar
tor-424063e3b2b882d72943bda41279bd29a711ec55.tar.gz
Implement destaddr-based isolation
The new candidate rule, which arma suggested and I like, is that the original address as received from the client connection or as rewritten by the controller is the address that counts.
Diffstat (limited to 'src/or/dnsserv.c')
-rw-r--r--src/or/dnsserv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/dnsserv.c b/src/or/dnsserv.c
index 8612b4850..c81d72f68 100644
--- a/src/or/dnsserv.c
+++ b/src/or/dnsserv.c
@@ -184,6 +184,7 @@ dnsserv_launch_request(const char *name, int reverse)
strlcpy(conn->socks_request->address, name,
sizeof(conn->socks_request->address));
+ conn->original_dest_address = tor_strdup(name);
if (connection_add(TO_CONN(conn))<0) {
log_warn(LD_APP, "Couldn't register dummy connection for RESOLVE request");