From 2089963e9e07c6957ff5e5dfb8b011a40db5bdbd Mon Sep 17 00:00:00 2001 From: Hendrik Schlehlein Date: Sun, 3 Feb 2019 19:22:59 +0100 Subject: [PATCH] ENV vars to uppercase --- config/config.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config/config.go b/config/config.go index 2cd7c25..9bbf542 100644 --- a/config/config.go +++ b/config/config.go @@ -82,12 +82,12 @@ func defaults() Config { } func (config *Config) overrideWithEnv() { - username := os.Getenv("ts3_name") - password := os.Getenv("ts3_pw") - tsIP := os.Getenv("ts3_ip") - tsPort, _ := strconv.Atoi(os.Getenv("ts3_port")) - tsQuery, _ := strconv.Atoi(os.Getenv("ts3_query")) - webPort, _ := strconv.Atoi(os.Getenv("web_port")) + username := os.Getenv("TS3_NAME") + password := os.Getenv("TS3_PW") + tsIP := os.Getenv("TS3_IP") + tsPort, _ := strconv.Atoi(os.Getenv("TS3_PORT")) + tsQuery, _ := strconv.Atoi(os.Getenv("TS3_QUERY")) + webPort, _ := strconv.Atoi(os.Getenv("WEB_PORT")) if username != "" { config.User.Name = username