mirror of
https://github.com/XrayR-project/XrayR.git
synced 2025-06-08 05:19:54 +00:00
fix: fix index out of range #27
This commit is contained in:
parent
01ef6fb699
commit
fc9cb4ac10
@ -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" {
|
||||
if c.panelType == "V2board" && len(*userInfo) > 0 {
|
||||
// use latest userInfo
|
||||
alterID = (*userInfo)[0].AlterID
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user