Fix shadowsocks config

This commit is contained in:
世界 2022-05-24 07:01:47 +08:00
parent 398375d76f
commit b6391cbbe1
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

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