RPRX 5 years ago
parent
commit
21739e6f38
2 changed files with 1 additions and 7 deletions
  1. 0 3
      infra/conf/vmess.go
  2. 1 4
      proxy/vmess/inbound/config.go

+ 0 - 3
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
 }

+ 1 - 4
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
 }