Skip to content
Snippets Groups Projects
Commit dc15ac91 authored by ale's avatar ale
Browse files

Fix a typo in the length check for session_enc_key

parent 3ebb8180
Branches
No related tags found
No related merge requests found
...@@ -138,7 +138,7 @@ func (c *Configuration) check() error { ...@@ -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") return errors.New("session_auth_key must be a random string of 32 or 64 bytes")
} }
switch len(c.SessionEncKey) { switch len(c.SessionEncKey) {
case 16, 24, 43: case 16, 24, 32:
case 0: case 0:
return errors.New("session_enc_key is empty") return errors.New("session_enc_key is empty")
default: default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment