diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-02-23 20:16:13 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-02-23 20:16:13 +0100 |
commit | 54c6ff1c419fffcb12ae33e45208b6dbe8914c02 (patch) | |
tree | 2b09b7804d19871551b763bdcede76e414d09281 /src/config.c | |
parent | 48a3812435c15c77c1ae752322cff63c8e0b092d (diff) | |
download | fastd-54c6ff1c419fffcb12ae33e45208b6dbe8914c02.tar fastd-54c6ff1c419fffcb12ae33e45208b6dbe8914c02.zip |
Subtract splay time to key refresh interval
A random splay time of up to 5 minutes will ensure that simultaneous handshakes
with many peers are desynchronized as fast as possible.
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c index 5bfda15..c866b14 100644 --- a/src/config.c +++ b/src/config.c @@ -114,6 +114,7 @@ static void default_config(fastd_config_t *conf) { conf->method_default = &fastd_method_null; conf->key_valid = 3600; /* 60 minutes */ conf->key_refresh = 3300; /* 55 minutes */ + conf->key_refresh_splay = 300; /* 5 minutes */ #ifdef USE_CRYPTO_AES128CTR conf->crypto_aes128ctr = fastd_crypto_aes128ctr_default; |