mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-10 02:53:11 +00:00
Fix shadowsocks config
This commit is contained in:
parent
398375d76f
commit
b6391cbbe1
|
@ -52,7 +52,7 @@ func (v *ShadowsocksServerConfig) Build() (proto.Message, error) {
|
||||||
config.Method = v.Cipher
|
config.Method = v.Cipher
|
||||||
config.Key = v.Password
|
config.Key = v.Password
|
||||||
config.Network = v.NetworkList.Build()
|
config.Network = v.NetworkList.Build()
|
||||||
if len(v.Users) == 0 {
|
if len(v.Users) != 0 {
|
||||||
return nil, newError("shadowsocks 2022 ciphers accept no users.")
|
return nil, newError("shadowsocks 2022 ciphers accept no users.")
|
||||||
}
|
}
|
||||||
return config, nil
|
return config, nil
|
||||||
|
|
Loading…
Reference in a new issue