v2ray-core/proxy/vmess/inbound/config.go

15 lines
263 B
Go
Raw Normal View History

2019-02-01 19:08:21 +00:00
// +build !confonly
2015-12-07 19:32:38 +00:00
package inbound
2016-12-07 11:32:03 +00:00
// GetDefaultValue returns default settings of DefaultConfig.
2017-11-25 14:20:59 +00:00
func (c *Config) GetDefaultValue() *DefaultConfig {
if c.GetDefault() == nil {
2016-10-17 12:35:13 +00:00
return &DefaultConfig{
AlterId: 32,
Level: 0,
}
}
2017-11-25 14:20:59 +00:00
return c.Default
2016-10-17 12:35:13 +00:00
}