From 013ec3386988ad10100502e30da76e10a509b704 Mon Sep 17 00:00:00 2001 From: yuzuki999 Date: Wed, 11 Jan 2023 11:51:11 +0800 Subject: [PATCH] fix shadowsocks2022 user key --- node/controller/user.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/controller/user.go b/node/controller/user.go index cca611b..dce63bb 100644 --- a/node/controller/user.go +++ b/node/controller/user.go @@ -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,