mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Config Array Syntax (#8204)
* refactor util encryption library so it doesn't have to import log * add util.SplitString to handle space and/or comma-separated config lines * go fmt
This commit is contained in:
committed by
Torkel Ödegaard
parent
d085aaad41
commit
b489e93d94
@@ -509,7 +509,7 @@ func NewConfigContext(args *CommandLineArgs) error {
|
||||
|
||||
// read data source proxy white list
|
||||
DataProxyWhiteList = make(map[string]bool)
|
||||
for _, hostAndIp := range security.Key("data_source_proxy_whitelist").Strings(" ") {
|
||||
for _, hostAndIp := range util.SplitString(security.Key("data_source_proxy_whitelist").String()) {
|
||||
DataProxyWhiteList[hostAndIp] = true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user