Correctly fallthrough to fix client configuration compatibility

pull/158/head
Andy Wang 3 years ago
parent fd695db044
commit 5cb54aa3c9
No known key found for this signature in database
GPG Key ID: 181B49F9F38F3374

@ -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

Loading…
Cancel
Save