Fix: vmess alterId can be 0

This commit is contained in:
gVisor bot 2018-10-23 11:28:41 +08:00
parent ddcc2da439
commit ff6a5c9b79

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