From dc15ac91464ee202c11c5821743c2b7eb0f35238 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Mon, 20 Nov 2017 22:21:47 +0000 Subject: [PATCH] Fix a typo in the length check for session_enc_key --- proxy/proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/proxy.go b/proxy/proxy.go index 09bd2e3..25973bd 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -138,7 +138,7 @@ func (c *Configuration) check() error { return errors.New("session_auth_key must be a random string of 32 or 64 bytes") } switch len(c.SessionEncKey) { - case 16, 24, 43: + case 16, 24, 32: case 0: return errors.New("session_enc_key is empty") default: -- GitLab