0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-12 11:29:36 +03:00

Fix: protobuf file (#724)

This commit is contained in:
hmol233
2021-09-20 22:41:09 +08:00
committed by GitHub
parent ffc2f7c4e2
commit 7033f7cf5f
62 changed files with 81 additions and 80 deletions

View File

@ -54,7 +54,8 @@ func (v *ShadowsocksServerConfig) Build() (proto.Message, error) {
if account.Password == "" {
return nil, newError("Shadowsocks password is not specified.")
}
if account.CipherType < 5 || account.CipherType > 7 {
if account.CipherType < shadowsocks.CipherType_AES_128_GCM ||
account.CipherType > shadowsocks.CipherType_CHACHA20_POLY1305 {
return nil, newError("unsupported cipher method: ", user.Cipher)
}
config.Users = append(config.Users, &protocol.User{