From 1f556d4ae5f242dd0547fa5bd89c0f3ff14ea8fa Mon Sep 17 00:00:00 2001 From: Dreamacro <305009791@qq.com> 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 a1a3f3c..c098389 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 }