From 2087aab2d588041331390bf0b29b82359be12086 Mon Sep 17 00:00:00 2001 From: Russ Magee Date: Wed, 10 Jul 2019 20:44:02 -0700 Subject: [PATCH] Minor cleanup to keepalive timing jitter comments --- hkexsh/hkexsh.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hkexsh/hkexsh.go b/hkexsh/hkexsh.go index 9e177da..c1c58db 100755 --- a/hkexsh/hkexsh.go +++ b/hkexsh/hkexsh.go @@ -898,7 +898,7 @@ func main() { time.Sleep(time.Duration(2000-rand.Intn(200)) * time.Millisecond) // FIXME: keepAlives should probably have small random packet len/data as well // to further obscure them vs. interactive or tunnel data - // ** Min pkt len is 2 due to hkex.Conn.WritePacket() padding logic? I forget. + // keepAlives must be >=2 bytes, due to processing elsewhere conn.WritePacket([]byte{0, 0}, hkexnet.CSOTunKeepAlive) // nolint: errcheck,gosec } }