From: Jason A. Donenfeld Date: Wed, 30 Oct 2019 13:29:32 +0000 (+0100) Subject: constants: recalculate rekey max based on a one minute flood X-Git-Tag: 0.0.20200121~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cdf805b29b1aaca1fab317ca4fce54c7fd69bf6;p=thirdparty%2Fwireguard-go.git constants: recalculate rekey max based on a one minute flood Discussed-with: Mathias Hall-Andersen --- 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