From d8aec47a727ce4ab76a7ff0c19ac6f1ebcc19012 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 11 Aug 2023 11:48:30 +0200 Subject: [PATCH] Revert "Make RefreshDelay match the documentation" This reverts commit cfd6ced1348ccb823c299f5ccf5d5bb63176b59f. --- dnscrypt-proxy/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dnscrypt-proxy/config.go b/dnscrypt-proxy/config.go index b88c1eb1..b141ee42 100644 --- a/dnscrypt-proxy/config.go +++ b/dnscrypt-proxy/config.go @@ -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,