feat: add support for v2raysocks

This commit is contained in:
pocketW
2022-08-21 00:36:16 +10:00
parent c9895fa02f
commit 337f441c32
8 changed files with 674 additions and 210 deletions

View File

@@ -346,7 +346,7 @@ func (c *Controller) addNewUser(userInfo *[]api.UserInfo, nodeInfo *api.NodeInfo
users = c.buildVlessUser(userInfo)
} else {
var alterID uint16 = 0
if c.panelType == "V2board" && len(*userInfo) > 0 {
if (c.panelType == "V2board" || c.panelType == "V2RaySocks") && len(*userInfo) > 0 {
// use latest userInfo
alterID = (*userInfo)[0].AlterID
} else {