diff --git a/config/config.go b/config/config.go index e42c113..56141f1 100644 --- a/config/config.go +++ b/config/config.go @@ -130,7 +130,7 @@ type MetricsConfig struct { } func (cfg *MetricsConfig) Validate() { - if cfg.Port <= 0 || cfg.Port > 65535 { + if cfg.Port < 0 || cfg.Port > 65535 { panic("port should be within (0, 65535]") } }