Skip to content

Commit

Permalink
Ensure new TTLs or additional names keep record around until next con…
Browse files Browse the repository at this point in the history
…ns query
  • Loading branch information
brycekahle committed Jun 14, 2021
1 parent 5e8c772 commit 596d563
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/network/dns_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ func (v *dnsCacheVal) merge(name string, deadline time.Time, maxSize int) (rejec
if exp, ok := v.names[name]; ok {
if deadline.After(exp) {
v.names[name] = deadline
v.inUse = true
}
return false
}
Expand All @@ -230,6 +231,7 @@ func (v *dnsCacheVal) merge(name string, deadline time.Time, maxSize int) (rejec
}

v.names[name] = deadline
v.inUse = true
return false
}

Expand Down

0 comments on commit 596d563

Please sign in to comment.