Fix: vmess alterId can be 0
This commit is contained in:
parent
ddcc2da439
commit
ff6a5c9b79
1 changed files with 1 additions and 0 deletions
|
@ -50,5 +50,6 @@ func newAlterIDs(primary *ID, alterIDCount uint16) []*ID {
|
||||||
alterIDs[idx] = &ID{UUID: newid, CmdKey: primary.CmdKey[:]}
|
alterIDs[idx] = &ID{UUID: newid, CmdKey: primary.CmdKey[:]}
|
||||||
prevID = newid
|
prevID = newid
|
||||||
}
|
}
|
||||||
|
alterIDs = append(alterIDs, primary)
|
||||||
return alterIDs
|
return alterIDs
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue