From 6ba2ff4fdc8b313aeaeedc12bb7152ffd1cc7e7b Mon Sep 17 00:00:00 2001 From: Markus Linnala Date: Sun, 20 Oct 2019 12:53:50 +0300 Subject: [PATCH] cleanup: config: rename static config as StaticsConfig Naming similar as SourcesConfig. --- dnscrypt-proxy/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dnscrypt-proxy/config.go b/dnscrypt-proxy/config.go index 5639c783..329909e6 100644 --- a/dnscrypt-proxy/config.go +++ b/dnscrypt-proxy/config.go @@ -58,7 +58,7 @@ type Config struct { BlockIP BlockIPConfig `toml:"ip_blacklist"` ForwardFile string `toml:"forwarding_rules"` CloakFile string `toml:"cloaking_rules"` - ServersConfig map[string]StaticConfig `toml:"static"` + StaticsConfig map[string]StaticConfig `toml:"static"` SourcesConfig map[string]SourceConfig `toml:"sources"` SourceRequireDNSSEC bool `toml:"require_dnssec"` SourceRequireNoLog bool `toml:"require_nolog"` @@ -570,12 +570,12 @@ func (config *Config) loadSources(proxy *Proxy) error { } } if len(config.ServerNames) == 0 { - for serverName := range config.ServersConfig { + for serverName := range config.StaticsConfig { config.ServerNames = append(config.ServerNames, serverName) } } for _, serverName := range config.ServerNames { - staticConfig, ok := config.ServersConfig[serverName] + staticConfig, ok := config.StaticsConfig[serverName] if !ok { continue }