Merge branch 'master' of github.com:jedisct1/dnscrypt-proxy

* 'master' of github.com:jedisct1/dnscrypt-proxy:
  Tiny typo in error message (#350)
This commit is contained in:
Frank Denis 2018-04-12 11:07:46 +02:00
commit 0cca203bb0
1 changed files with 2 additions and 2 deletions

View File

@ -467,12 +467,12 @@ func (config *Config) loadSource(proxy *Proxy, requiredProps ServerInformalPrope
source, sourceUrlsToPrefetch, err := NewSource(proxy.xTransport, cfgSource.URLs, cfgSource.MinisignKeyStr, cfgSource.CacheFile, cfgSource.FormatStr, time.Duration(cfgSource.RefreshDelay)*time.Hour) source, sourceUrlsToPrefetch, err := NewSource(proxy.xTransport, cfgSource.URLs, cfgSource.MinisignKeyStr, cfgSource.CacheFile, cfgSource.FormatStr, time.Duration(cfgSource.RefreshDelay)*time.Hour)
proxy.urlsToPrefetch = append(proxy.urlsToPrefetch, sourceUrlsToPrefetch...) proxy.urlsToPrefetch = append(proxy.urlsToPrefetch, sourceUrlsToPrefetch...)
if err != nil { if err != nil {
dlog.Criticalf("Unable use source [%s]: [%s]", cfgSourceName, err) dlog.Criticalf("Unable to use source [%s]: [%s]", cfgSourceName, err)
return nil return nil
} }
registeredServers, err := source.Parse(cfgSource.Prefix) registeredServers, err := source.Parse(cfgSource.Prefix)
if err != nil { if err != nil {
dlog.Criticalf("Unable use source [%s]: [%s]", cfgSourceName, err) dlog.Criticalf("Unable to use source [%s]: [%s]", cfgSourceName, err)
return nil return nil
} }
for _, registeredServer := range registeredServers { for _, registeredServer := range registeredServers {