aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2002-12-03 07:06:13 +0000
committerRoger Dingledine <arma@torproject.org>2002-12-03 07:06:13 +0000
commitbd97deb91940ea7a2eeb88e7ae1aea5cbf98c681 (patch)
tree3dc45e8c07a344b3f2b9af1c5d8370542efe9ab8 /src
parent8f2beefca45d929134b1e4a64151430cd21de5f5 (diff)
downloadtor-bd97deb91940ea7a2eeb88e7ae1aea5cbf98c681.tar
tor-bd97deb91940ea7a2eeb88e7ae1aea5cbf98c681.tar.gz
onions expire after a day, not an hour
this was a major faq, because it would fail with an error only on the *server* side when the client-side time was wrong. the client would simply not work. svn:r145
Diffstat (limited to 'src')
-rw-r--r--src/or/onion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/onion.c b/src/or/onion.c
index 083e60e8c..fe3313752 100644
--- a/src/or/onion.c
+++ b/src/or/onion.c
@@ -510,7 +510,7 @@ unsigned char *create_onion(routerinfo_t **rarray, int rarray_len, unsigned int
else
layer->addr = 0;
/* Expiration Time */
- layer->expire = time(NULL) + 3600; /* NOW + 1 hour */
+ layer->expire = time(NULL) + 86400; /* NOW + 1 day */
/* Key Seed Material */
if(crypto_rand(16, layer->keyseed)) { /* error */
log(LOG_ERR,"Error generating random data.");