Cache Plugin: return non-fixed TTL for cached entries (refactor)

This commit is contained in:
Amit 2018-02-09 22:13:24 +02:00
parent 65dfa8ecca
commit 5dbfc39f7d
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ func getMinTTL(msg *dns.Msg, minTTL uint32, maxTTL uint32, negCacheMinTTL uint32
return time.Duration(ttl) * time.Second 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 { for _, rr := range msg.Answer {
if ttl < rr.Header().Ttl { if ttl < rr.Header().Ttl {
rr.Header().Ttl = ttl rr.Header().Ttl = ttl