plugin/dnssec: interface type correction for `periodicClean` sig validity check
@@ -33,10 +33,11 @@ func periodicClean(c *cache.Cache, stop <-chan struct{}) {
// the signature
is75 := time.Now().UTC().Add(sixDays)
c.Walk(func(items map[uint64]interface{}, key uint64) bool {
- sig := items[key].(*dns.RRSIG)
- if !sig.ValidityPeriod(is75) {
+ for _, rr := range items[key].([]dns.RR) {
+ if !rr.(*dns.RRSIG).ValidityPeriod(is75) {
delete(items, key)
}
+ }
return true
})
