fix ss user build bug

This commit is contained in:
yuzuki999 2022-10-19 01:16:53 +08:00
parent bb0e22335f
commit ac2b231d48

View File

@ -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
}