From 145ea1e6f17cc766df266ca3eacf8dd688eb1930 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Thu, 27 Jul 2023 11:58:12 +0330 Subject: full multiuser shadowsocks full multiuser shadowsocks + fix logs after api changes Co-Authored-By: Alireza Ahmadi --- sub/subService.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sub/subService.go') diff --git a/sub/subService.go b/sub/subService.go index 100d98d3..d650da0c 100644 --- a/sub/subService.go +++ b/sub/subService.go @@ -755,7 +755,10 @@ func (s *SubService) genShadowsocksLink(inbound *model.Inbound, email string, ex } } - encPart := fmt.Sprintf("%s:%s:%s", method, inboundPassword, clients[clientIndex].Password) + encPart := fmt.Sprintf("%s:%s", method, clients[clientIndex].Password) + if method[0] == '2' { + encPart = fmt.Sprintf("%s:%s:%s", method, inboundPassword, clients[clientIndex].Password) + } link := fmt.Sprintf("ss://%s@%s:%d", base64.StdEncoding.EncodeToString([]byte(encPart)), address, inbound.Port) url, _ := url.Parse(link) q := url.Query() -- cgit v1.2.3