mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-04 12:09:19 +02: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.Key = v.Password
|
||||
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 config, nil
|
||||
|
|
Loading…
Reference in New Issue