From 93810e60d7cd5594308a7f5ffabd982389d85e40 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 3 Feb 2018 18:55:46 +0100 Subject: [PATCH] Set the default source refresh delay to 3 days --- dnscrypt-proxy/config.go | 2 +- dnscrypt-proxy/example-dnscrypt-proxy.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dnscrypt-proxy/config.go b/dnscrypt-proxy/config.go index 56cc69c5..ac1e3a85 100644 --- a/dnscrypt-proxy/config.go +++ b/dnscrypt-proxy/config.go @@ -345,7 +345,7 @@ func (config *Config) loadSource(proxy *Proxy, requiredProps ServerInformalPrope cfgSource.FormatStr = "v2" } if cfgSource.RefreshDelay <= 0 { - cfgSource.RefreshDelay = 24 + cfgSource.RefreshDelay = 72 } source, sourceUrlsToPrefetch, err := NewSource(proxy.xTransport, cfgSource.URL, cfgSource.MinisignKeyStr, cfgSource.CacheFile, cfgSource.FormatStr, time.Duration(cfgSource.RefreshDelay)*time.Hour) proxy.urlsToPrefetch = append(proxy.urlsToPrefetch, sourceUrlsToPrefetch...) diff --git a/dnscrypt-proxy/example-dnscrypt-proxy.toml b/dnscrypt-proxy/example-dnscrypt-proxy.toml index 206d4202..e39979ac 100644 --- a/dnscrypt-proxy/example-dnscrypt-proxy.toml +++ b/dnscrypt-proxy/example-dnscrypt-proxy.toml @@ -295,7 +295,7 @@ cache_neg_ttl = 60 cache_file = 'public-resolvers.md' format = 'v2' minisign_key = 'RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3' - refresh_delay = 168 + refresh_delay = 72 prefix = '' ## Another example source, with resolvers censoring some websites not approriate for children