mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
check for two days of remaining validity (#4606)
Signed-off-by: Keith C <keith@fraudmarc.com>
This commit is contained in:
@@ -31,7 +31,7 @@ func periodicClean(c *cache.Cache, stop <-chan struct{}) {
|
||||
case <-tick.C:
|
||||
// we sign for 8 days, check if a signature in the cache reached 75% of that (i.e. 6), if found delete
|
||||
// the signature
|
||||
is75 := time.Now().UTC().Add(sixDays)
|
||||
is75 := time.Now().UTC().Add(twoDays)
|
||||
c.Walk(func(items map[uint64]interface{}, key uint64) bool {
|
||||
for _, rr := range items[key].([]dns.RR) {
|
||||
if !rr.(*dns.RRSIG).ValidityPeriod(is75) {
|
||||
|
||||
Reference in New Issue
Block a user