From f92299b39ca959a03ca4b1d48190300f4f5045ff Mon Sep 17 00:00:00 2001 From: Dolph Mathews Date: Sat, 25 Feb 2023 13:23:06 -0600 Subject: [PATCH] restore default statsd options --- config.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/config.go b/config.go index 529bd03..49f3ef4 100644 --- a/config.go +++ b/config.go @@ -64,15 +64,15 @@ func LoadConfig(path string) *Config { } // Apply some default values - // if cfg.StatsdHost == "" { - // cfg.StatsdHost = "127.0.0.1" - // } - // if cfg.StatsdPort == 0 { - // cfg.StatsdPort = 8125 - // } - // if cfg.StatsdProtocol == "" { - // cfg.StatsdProtocol = "udp" - // } + if cfg.StatsdHost == "" { + cfg.StatsdHost = "127.0.0.1" + } + if cfg.StatsdPort == 0 { + cfg.StatsdPort = 8125 + } + if cfg.StatsdProtocol == "" { + cfg.StatsdProtocol = "udp" + } return &cfg }