mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
plugin/dnssec: interface type correction for periodicClean sig validity check (#4608)
Signed-off-by: Keith C <keith@fraudmarc.com>
This commit is contained in:
@@ -33,9 +33,10 @@ func periodicClean(c *cache.Cache, stop <-chan struct{}) {
|
|||||||
// the signature
|
// the signature
|
||||||
is75 := time.Now().UTC().Add(sixDays)
|
is75 := time.Now().UTC().Add(sixDays)
|
||||||
c.Walk(func(items map[uint64]interface{}, key uint64) bool {
|
c.Walk(func(items map[uint64]interface{}, key uint64) bool {
|
||||||
sig := items[key].(*dns.RRSIG)
|
for _, rr := range items[key].([]dns.RR) {
|
||||||
if !sig.ValidityPeriod(is75) {
|
if !rr.(*dns.RRSIG).ValidityPeriod(is75) {
|
||||||
delete(items, key)
|
delete(items, key)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user