config.go 263 B

1234567891011121314
  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. AlterId: 32,
  8. Level: 0,
  9. }
  10. }
  11. return c.Default
  12. }