fix shadowsocks2022 user key

This commit is contained in:
yuzuki999 2023-01-11 11:51:11 +08:00
parent 0beba17baa
commit 013ec33869

View File

@ -1,6 +1,7 @@
package controller
import (
"encoding/base64"
"fmt"
"github.com/Yuzuki616/V2bX/api/panel"
"github.com/xtls/xray-core/common/protocol"
@ -110,7 +111,7 @@ func (c *Node) buildSSUser(userInfo *panel.UserInfo, cypher shadowsocks.CipherTy
}
} else {
ssAccount := &shadowsocks_2022.User{
Key: userInfo.Uuid,
Key: base64.StdEncoding.EncodeToString([]byte(userInfo.Uuid[:32])),
}
return &protocol.User{
Level: 0,