mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 09:36:34 -05:00
32 -> 0
This commit is contained in:
parent
b0dfaa83eb
commit
21739e6f38
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user