1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-02-20 23:47:21 -05:00
v2fly/proxy/vmess/inbound/config.go

15 lines
263 B
Go
Raw Normal View History

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