From 5cb54aa3c9b3084a5350412dcf7017e25bf958ff Mon Sep 17 00:00:00 2001 From: Andy Wang Date: Mon, 28 Dec 2020 09:15:40 +0000 Subject: [PATCH] Correctly fallthrough to fix client configuration compatibility --- internal/client/state.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/client/state.go b/internal/client/state.go index c26f839..0ee914c 100644 --- a/internal/client/state.go +++ b/internal/client/state.go @@ -163,8 +163,7 @@ func (raw *RawConfig) ProcessRawConfig(worldState common.WorldState) (local Loca switch strings.ToLower(raw.EncryptionMethod) { case "plain": auth.EncryptionMethod = mux.EncryptionMethodPlain - case "aes-gcm": - case "aes-256-gcm": + case "aes-gcm", "aes-256-gcm": auth.EncryptionMethod = mux.EncryptionMethodAES256GCM case "aes-128-gcm": auth.EncryptionMethod = mux.EncryptionMethodAES128GCM