aboutsummaryrefslogtreecommitdiffstats
path: root/device
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-10-30 14:29:32 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-10-30 14:29:32 +0100
commit4cdf805b29b1aaca1fab317ca4fce54c7fd69bf6 (patch)
tree2e2ec7aca22ce98a0a7971ab871e2719ea0a7c8e /device
parentglobal: fix a few typos courtesy of codespell (diff)
downloadwireguard-go-4cdf805b29b1aaca1fab317ca4fce54c7fd69bf6.tar.xz
wireguard-go-4cdf805b29b1aaca1fab317ca4fce54c7fd69bf6.zip
constants: recalculate rekey max based on a one minute flood
Discussed-with: Mathias Hall-Andersen <mathias@hall-andersen.dk>
Diffstat (limited to 'device')
-rw-r--r--device/constants.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/device/constants.go b/device/constants.go
index e316f32..586ec9e 100644
--- a/device/constants.go
+++ b/device/constants.go
@@ -12,7 +12,7 @@ import (
/* Specification constants */
const (
- RekeyAfterMessages = (1 << 64) - (1 << 16) - 1
+ RekeyAfterMessages = (1 << 60)
RejectAfterMessages = (1 << 64) - (1 << 4) - 1
RekeyAfterTime = time.Second * 120
RekeyAttemptTime = time.Second * 90