From d461fcd9baabe84cf0f0738271adcd40ae6dfc86 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 10 Aug 2023 12:36:00 +0200 Subject: [PATCH] re-add env parsing --- proxy.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proxy.go b/proxy.go index 70498cf..7072a3d 100644 --- a/proxy.go +++ b/proxy.go @@ -97,6 +97,7 @@ func main() { // use .env file if it exists if _, err := os.Stat(".env"); err == nil { if err := ff.Parse(flagset, os.Args[1:], + ff.WithEnvVarPrefix(""), ff.WithConfigFile(".env"), ff.WithConfigFileParser(ff.EnvParser), ); err != nil { @@ -106,6 +107,7 @@ func main() { } else { // use env variables and shelly-proxy.ini file if err := ff.Parse(flagset, os.Args[1:], + ff.WithEnvVarPrefix(""), ff.WithConfigFileFlag("config"), ff.WithConfigFileParser(IniParser), ); err != nil {