From c14ed99cf6b341af41d629fcc218fa3e8bfa1a6a Mon Sep 17 00:00:00 2001 From: mzz2017 Date: Tue, 25 Jan 2022 21:20:39 +0800 Subject: [PATCH] feat: remove alterID in VMess --- service/core/serverObj/v2ray.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/service/core/serverObj/v2ray.go b/service/core/serverObj/v2ray.go index 37a8c56c..ad4eaa87 100644 --- a/service/core/serverObj/v2ray.go +++ b/service/core/serverObj/v2ray.go @@ -178,7 +178,6 @@ func (v *V2Ray) Configuration(info PriorInfo) (c Configuration, err error) { Protocol: v.Protocol, } port, _ := strconv.Atoi(v.Port) - aid, _ := strconv.Atoi(v.Aid) switch strings.ToLower(v.Protocol) { case "vmess", "vless": id := v.ID @@ -194,7 +193,7 @@ func (v *V2Ray) Configuration(info PriorInfo) (c Configuration, err error) { Users: []coreObj.User{ { ID: id, - AlterID: aid, + AlterID: 0, Security: "auto", }, },