Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Sep 30, 2024
1 parent feca22f commit 9c4899a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions challenge/dns01/nameserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ import (

const defaultResolvConf = "/etc/resolv.conf"

var (
fqdnSoaCache = &sync.Map{}
)
var fqdnSoaCache = &sync.Map{}

var defaultNameservers = []string{
"google-public-dns-a.google.com:53",
Expand Down Expand Up @@ -50,7 +48,7 @@ func (cache *soaCacheEntry) isExpired() bool {

// ClearFqdnCache clears the cache of fqdn to zone mappings. Primarily used in testing.
func ClearFqdnCache() {
fqdnSoaCache = &sync.Map{}
fqdnSoaCache.Clear()
}

func AddDNSTimeout(timeout time.Duration) ChallengeOption {
Expand Down

0 comments on commit 9c4899a

Please sign in to comment.