From 21739e6f38cd5b142aeb33ad302534824b089af4 Mon Sep 17 00:00:00 2001 From: RPRX <63339210+rprx@users.noreply.github.com> Date: Mon, 2 Nov 2020 11:00:08 +0000 Subject: [PATCH] 32 -> 0 --- infra/conf/vmess.go | 3 --- proxy/vmess/inbound/config.go | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/infra/conf/vmess.go b/infra/conf/vmess.go index 093bf62de..0bede83c6 100644 --- a/infra/conf/vmess.go +++ b/infra/conf/vmess.go @@ -67,9 +67,6 @@ type VMessDefaultConfig struct { func (c *VMessDefaultConfig) Build() *inbound.DefaultConfig { config := new(inbound.DefaultConfig) config.AlterId = uint32(c.AlterIDs) - if config.AlterId == 0 { - config.AlterId = 32 - } config.Level = uint32(c.Level) return config } diff --git a/proxy/vmess/inbound/config.go b/proxy/vmess/inbound/config.go index 3d2b8f878..25badc456 100644 --- a/proxy/vmess/inbound/config.go +++ b/proxy/vmess/inbound/config.go @@ -5,10 +5,7 @@ package inbound // GetDefaultValue returns default settings of DefaultConfig. func (c *Config) GetDefaultValue() *DefaultConfig { if c.GetDefault() == nil { - return &DefaultConfig{ - AlterId: 32, - Level: 0, - } + return &DefaultConfig{} } return c.Default }