This commit is contained in:
Bolke de Bruin 2024-03-19 10:20:14 +01:00
parent ec63346c8a
commit 7bf2a59838

View File

@ -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)
}