Fix: vmess alterId can be 0

This commit is contained in:
Dreamacro 2018-10-23 11:28:41 +08:00
parent 082d3bbf04
commit 1f556d4ae5
1 changed files with 1 additions and 0 deletions

View File

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