diff --git a/dnscrypt-proxy/config.go b/dnscrypt-proxy/config.go index 19213a68..b1212cea 100644 --- a/dnscrypt-proxy/config.go +++ b/dnscrypt-proxy/config.go @@ -675,7 +675,8 @@ func (config *Config) loadSources(proxy *Proxy) error { if config.SourceRequireNoFilter { requiredProps |= stamps.ServerInformalPropertyNoFilter } - for cfgSourceName, cfgSource := range config.SourcesConfig { + for cfgSourceName, cfgSource_ := range config.SourcesConfig { + cfgSource := cfgSource_ if err := config.loadSource(proxy, requiredProps, cfgSourceName, &cfgSource); err != nil { return err }