From 7bf2a5983857396202b0f4ff28112dc1e58d71b0 Mon Sep 17 00:00:00 2001 From: Bolke de Bruin <bolke@xs4all.nl> Date: Tue, 19 Mar 2024 10:20:14 +0100 Subject: [PATCH] Testing --- cmd/rdpgw/config/configuration.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/rdpgw/config/configuration.go b/cmd/rdpgw/config/configuration.go index 7791f57..8e3804d 100644 --- a/cmd/rdpgw/config/configuration.go +++ b/cmd/rdpgw/config/configuration.go @@ -165,8 +165,10 @@ func Load(configFile string) Configuration { key := strings.Replace(strings.ToLower(strings.TrimPrefix(s, "RDPGW_")), "__", ".", -1) key = ToCamel(key) + newVal := strings.Split(strings.Trim(v, " "), " ") + log.Printf("Setting %s to %v", key, newVal) // handle the case where the value is a list - return key, strings.Split(strings.Trim(v, " "), " ") + return key, newVal }), nil); err != nil { log.Fatalf("Error loading config from environment: %v", err) } -- GitLab