From a85352c4025a33f280257482c43b51035bbd574d Mon Sep 17 00:00:00 2001 From: "riolu.rs" <134358748+riolurs@users.noreply.github.com> Date: Thu, 2 May 2024 22:53:09 +0800 Subject: [PATCH] fix(xray.ss) ss2022 users --- core/xray/ss.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/xray/ss.go b/core/xray/ss.go index 490daea..d6efdee 100644 --- a/core/xray/ss.go +++ b/core/xray/ss.go @@ -40,7 +40,9 @@ func buildSSUser(tag string, userInfo *panel.UserInfo, cypher string, serverKey keyLength = 32 } ssAccount := &shadowsocks_2022.User{ - Key: base64.StdEncoding.EncodeToString([]byte(userInfo.Uuid[:keyLength])), + Level: 0, + Email: format.UserTag(tag, userInfo.Uuid), + Key: base64.StdEncoding.EncodeToString([]byte(userInfo.Uuid[:keyLength])), } return &protocol.User{ Level: 0,