config.go 229 B

1234567891011
  1. // +build !confonly
  2. package inbound
  3. // GetDefaultValue returns default settings of DefaultConfig.
  4. func (c *Config) GetDefaultValue() *DefaultConfig {
  5. if c.GetDefault() == nil {
  6. return &DefaultConfig{}
  7. }
  8. return c.Default
  9. }