Set the default source refresh delay to 3 days
This commit is contained in:
parent
588d8dabde
commit
93810e60d7
|
@ -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...)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue