mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 15:43:32 +01:00
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
This commit is contained in:
parent
8f2beefca4
commit
bd97deb919
@ -510,7 +510,7 @@ unsigned char *create_onion(routerinfo_t **rarray, int rarray_len, unsigned int
|
|||||||
else
|
else
|
||||||
layer->addr = 0;
|
layer->addr = 0;
|
||||||
/* Expiration Time */
|
/* Expiration Time */
|
||||||
layer->expire = time(NULL) + 3600; /* NOW + 1 hour */
|
layer->expire = time(NULL) + 86400; /* NOW + 1 day */
|
||||||
/* Key Seed Material */
|
/* Key Seed Material */
|
||||||
if(crypto_rand(16, layer->keyseed)) { /* error */
|
if(crypto_rand(16, layer->keyseed)) { /* error */
|
||||||
log(LOG_ERR,"Error generating random data.");
|
log(LOG_ERR,"Error generating random data.");
|
||||||
|
Loading…
Reference in New Issue
Block a user