mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2026-03-27 14:36:36 +00:00
Testing
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user