summaryrefslogtreecommitdiff
path: root/src/or/dns.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-11-13 04:51:34 +0000
committerRoger Dingledine <arma@torproject.org>2003-11-13 04:51:34 +0000
commitaac29076daf7350e6d0f3f0a1f83177fd3e8b011 (patch)
tree13f355a6008db696c1371335f9b7b21afbaa13b5 /src/or/dns.c
parentddd7ebe3073c9bb82a188c41ae72e533fb1d980c (diff)
downloadtor-aac29076daf7350e6d0f3f0a1f83177fd3e8b011.tar.gz
tor-aac29076daf7350e6d0f3f0a1f83177fd3e8b011.zip
warn on startup that we don't provide anonymity
make exit dns cache entries last 15 minutes svn:r807
Diffstat (limited to 'src/or/dns.c')
-rw-r--r--src/or/dns.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index f51a5ce75e..659b07b25b 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -130,8 +130,7 @@ int dns_resolve(connection_t *exitconn) {
resolve = tor_malloc(sizeof(struct cached_resolve));
memset(resolve, 0, sizeof(struct cached_resolve));
resolve->state = CACHE_STATE_PENDING;
- resolve->expire = now + 100; /* XXX for testing. when we're confident, switch it back */
-// resolve->expire = now + 86400; /* now + 1 day */
+ resolve->expire = now + 15*60; /* 15 minutes */
strncpy(resolve->question, exitconn->address, MAX_ADDRESSLEN);
/* add us to the pending list */