From b6391cbbe19de5a42f021d369e2d9cb3f678e454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 24 May 2022 07:01:47 +0800 Subject: [PATCH] Fix shadowsocks config --- infra/conf/shadowsocks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/conf/shadowsocks.go b/infra/conf/shadowsocks.go index 32e4bb9d..2cc5a210 100644 --- a/infra/conf/shadowsocks.go +++ b/infra/conf/shadowsocks.go @@ -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