fix(xray.ss) ss2022 users

This commit is contained in:
riolu.rs 2024-05-02 22:53:09 +08:00 committed by GitHub
parent f928b4f8f3
commit a85352c402
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,6 +40,8 @@ func buildSSUser(tag string, userInfo *panel.UserInfo, cypher string, serverKey
keyLength = 32
}
ssAccount := &shadowsocks_2022.User{
Level: 0,
Email: format.UserTag(tag, userInfo.Uuid),
Key: base64.StdEncoding.EncodeToString([]byte(userInfo.Uuid[:keyLength])),
}
return &protocol.User{