diff options
Diffstat (limited to 'toxcore/onion.c')
-rw-r--r-- | toxcore/onion.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/onion.c b/toxcore/onion.c index c6093f0c..48e4c769 100644 --- a/toxcore/onion.c +++ b/toxcore/onion.c | |||
@@ -35,8 +35,8 @@ | |||
35 | #define SEND_2 ONION_SEND_2 | 35 | #define SEND_2 ONION_SEND_2 |
36 | #define SEND_1 ONION_SEND_1 | 36 | #define SEND_1 ONION_SEND_1 |
37 | 37 | ||
38 | /* Change symmetric keys every hour to make paths expire eventually. */ | 38 | /* Change symmetric keys every 2 hours to make paths expire eventually. */ |
39 | #define KEY_REFRESH_INTERVAL (60 * 60) | 39 | #define KEY_REFRESH_INTERVAL (2 * 60 * 60) |
40 | static void change_symmetric_key(Onion *onion) | 40 | static void change_symmetric_key(Onion *onion) |
41 | { | 41 | { |
42 | if (is_timeout(onion->timestamp, KEY_REFRESH_INTERVAL)) { | 42 | if (is_timeout(onion->timestamp, KEY_REFRESH_INTERVAL)) { |