diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-07-08 15:15:59 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-07-19 02:02:11 -0400 |
commit | 424063e3b2b882d72943bda41279bd29a711ec55 (patch) | |
tree | d40939c490c7069e46080f78b5eb158d9edba589 /src/or/dnsserv.c | |
parent | aef30547dc4aa77fc79517a6dcad7712b59af371 (diff) | |
download | tor-424063e3b2b882d72943bda41279bd29a711ec55.tar.gz tor-424063e3b2b882d72943bda41279bd29a711ec55.zip |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/dnsserv.c b/src/or/dnsserv.c index 8612b4850f..c81d72f687 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"); |