From ff6a5c9b79413c0e8dbc6f50bac0500e4054d2cc Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Tue, 23 Oct 2018 11:28:41 +0800 Subject: [PATCH] Fix: vmess alterId can be 0 --- component/vmess/user.go | 1 + 1 file changed, 1 insertion(+) diff --git a/component/vmess/user.go b/component/vmess/user.go index a1a3f3c2..c098389e 100644 --- a/component/vmess/user.go +++ b/component/vmess/user.go @@ -50,5 +50,6 @@ func newAlterIDs(primary *ID, alterIDCount uint16) []*ID { alterIDs[idx] = &ID{UUID: newid, CmdKey: primary.CmdKey[:]} prevID = newid } + alterIDs = append(alterIDs, primary) return alterIDs }