[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Turn off by-default use of client-side DNS cacheing.



commit ac990aa44a2e3f2b03f2f91e93847230c744dc5c
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Sun Nov 25 15:36:35 2012 -0500

    Turn off by-default use of client-side DNS cacheing.
---
 doc/tor.1.txt   |    4 +++-
 src/or/config.c |    3 +--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/doc/tor.1.txt b/doc/tor.1.txt
index d6b51cb..5cf7ff7 100644
--- a/doc/tor.1.txt
+++ b/doc/tor.1.txt
@@ -946,7 +946,9 @@ The following options are useful only for clients (that is, if
         nodes via this connection.
     **UseIPv4Cache**;;
         Tells the client to use any cached IPv4 DNS answers we have when making
-        requests via this connection. (On by default.)
+        requests via this connection. (NOTE: This option, along UseIPv6Cache
+        and UseDNSCache, can harm your anonymity, and probably
+        won't help performance as much as you might expect. Use with care!)
     **UseIPv6Cache**;;
         Tells the client to use any cached IPv6 DNS answers we have when making
         requests via this connection.
diff --git a/src/or/config.c b/src/or/config.c
index 9f54d3d..04f512b 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -4596,7 +4596,6 @@ port_cfg_new(void)
   port_cfg_t *cfg = tor_malloc_zero(sizeof(port_cfg_t));
   cfg->ipv4_traffic = 1;
   cfg->cache_ipv4_answers = 1;
-  cfg->use_cached_ipv4_answers = 1;
   return cfg;
 }
 
@@ -4844,7 +4843,7 @@ parse_port_config(smartlist_t *out,
     int no_listen = 0, no_advertise = 0, all_addrs = 0,
       bind_ipv4_only = 0, bind_ipv6_only = 0,
       ipv4_traffic = 1, ipv6_traffic = 0, prefer_ipv6 = 0,
-      cache_ipv4 = 1, use_cached_ipv4 = 1,
+      cache_ipv4 = 1, use_cached_ipv4 = 0,
       cache_ipv6 = 0, use_cached_ipv6 = 0;
 
     smartlist_split_string(elts, ports->value, NULL,



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits