mirror of https://github.com/cbeuw/Cloak
Correctly fallthrough to fix client configuration compatibility
This commit is contained in:
parent
fd695db044
commit
5cb54aa3c9
|
|
@ -163,8 +163,7 @@ func (raw *RawConfig) ProcessRawConfig(worldState common.WorldState) (local Loca
|
||||||
switch strings.ToLower(raw.EncryptionMethod) {
|
switch strings.ToLower(raw.EncryptionMethod) {
|
||||||
case "plain":
|
case "plain":
|
||||||
auth.EncryptionMethod = mux.EncryptionMethodPlain
|
auth.EncryptionMethod = mux.EncryptionMethodPlain
|
||||||
case "aes-gcm":
|
case "aes-gcm", "aes-256-gcm":
|
||||||
case "aes-256-gcm":
|
|
||||||
auth.EncryptionMethod = mux.EncryptionMethodAES256GCM
|
auth.EncryptionMethod = mux.EncryptionMethodAES256GCM
|
||||||
case "aes-128-gcm":
|
case "aes-128-gcm":
|
||||||
auth.EncryptionMethod = mux.EncryptionMethodAES128GCM
|
auth.EncryptionMethod = mux.EncryptionMethodAES128GCM
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue