config.go 242 B

123456789101112
  1. package inbound
  2. // GetDefaultValue returns default settings of DefaultConfig.
  3. func (c *Config) GetDefaultValue() *DefaultConfig {
  4. if c.GetDefault() == nil {
  5. return &DefaultConfig{
  6. AlterId: 32,
  7. Level: 0,
  8. }
  9. }
  10. return c.Default
  11. }