Skip to content

Commit

Permalink
go-ipfs-config: feat: add DNS.MaxCacheTTL for DNS-over-HTTPS resolvers (
Browse files Browse the repository at this point in the history
  • Loading branch information
thibmeu authored Jan 20, 2022
1 parent a6008f0 commit 9a0bd0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ type DNS struct {
// - Custom resolver for ENS: `eth.` → `https://eth.link/dns-query`
// - Override the default OS resolver: `.` → `https://doh.applied-privacy.net/query`
Resolvers map[string]string
// MaxCacheTTL is the maximum duration DNS entries are valid in the cache.
MaxCacheTTL *OptionalDuration `json:",omitempty"`
}

0 comments on commit 9a0bd0f

Please sign in to comment.