From ac2b231d48d9811b091e5ad4156bb243326cf40d Mon Sep 17 00:00:00 2001 From: yuzuki999 Date: Wed, 19 Oct 2022 01:16:53 +0800 Subject: [PATCH] fix ss user build bug --- node/controller/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/controller/user.go b/node/controller/user.go index aa4e0ea..0d1949c 100644 --- a/node/controller/user.go +++ b/node/controller/user.go @@ -92,7 +92,7 @@ func getCipherFromString(c string) shadowsocks.CipherType { func (c *Node) buildSSUsers(userInfo []panel.UserInfo, cypher shadowsocks.CipherType) (users []*protocol.User) { users = make([]*protocol.User, len(userInfo)) for i := range userInfo { - c.buildSSUser(&(userInfo)[i], cypher) + users[i] = c.buildSSUser(&(userInfo)[i], cypher) } return users }