mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-03 21:27:37 +03:00
Revert "Make RefreshDelay match the documentation"
This reverts commit cfd6ced134
.
This commit is contained in:
parent
cfd6ced134
commit
d8aec47a72
1 changed files with 2 additions and 1 deletions
|
@ -894,8 +894,9 @@ func (config *Config) loadSource(proxy *Proxy, cfgSourceName string, cfgSource *
|
|||
}
|
||||
if cfgSource.RefreshDelay <= 0 {
|
||||
cfgSource.RefreshDelay = 72
|
||||
} else if cfgSource.RefreshDelay > 168 {
|
||||
cfgSource.RefreshDelay = 168
|
||||
}
|
||||
cfgSource.RefreshDelay = Min(168, Max(24, cfgSource.RefreshDelay))
|
||||
source, err := NewSource(
|
||||
cfgSourceName,
|
||||
proxy.xTransport,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue