From 5dbfc39f7d31805cb15a7c4baa52466847426fff Mon Sep 17 00:00:00 2001 From: Amit <4527660+amitbl@users.noreply.github.com> Date: Fri, 9 Feb 2018 22:13:24 +0200 Subject: [PATCH] Cache Plugin: return non-fixed TTL for cached entries (refactor) --- dnscrypt-proxy/dnsutils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnscrypt-proxy/dnsutils.go b/dnscrypt-proxy/dnsutils.go index 2d612b5a..e49db335 100644 --- a/dnscrypt-proxy/dnsutils.go +++ b/dnscrypt-proxy/dnsutils.go @@ -83,7 +83,7 @@ func getMinTTL(msg *dns.Msg, minTTL uint32, maxTTL uint32, negCacheMinTTL uint32 return time.Duration(ttl) * time.Second } -func setMaxTTL(msg *dns.Msg, ttl uint32, force bool) { +func setMaxTTL(msg *dns.Msg, ttl uint32) { for _, rr := range msg.Answer { if ttl < rr.Header().Ttl { rr.Header().Ttl = ttl