aboutsummaryrefslogtreecommitdiffstats
path: root/cache/cache.go
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2019-12-25 16:43:58 +0100
committerMartin Polden <mpolden@mpolden.no>2019-12-25 16:43:58 +0100
commit274631f4fd2f52a8a85d8d261af62d7710fa6ef3 (patch)
tree8261414000d32f1eb77b0907fdf9958d4b7cd631 /cache/cache.go
parent4c3b48301fe218c77e71afbfc7cd29af8e1753ab (diff)
TTL of additional section should not be counted
Diffstat (limited to 'cache/cache.go')
-rw-r--r--cache/cache.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/cache/cache.go b/cache/cache.go
index e23d24f..097739f 100644
--- a/cache/cache.go
+++ b/cache/cache.go
@@ -170,9 +170,6 @@ func minTTL(m *dns.Msg) time.Duration {
for _, ns := range m.Ns {
ttl = min(ns.Header().Ttl, ttl)
}
- for _, extra := range m.Extra {
- ttl = min(extra.Header().Ttl, ttl)
- }
return time.Duration(ttl) * time.Second
}