go-ipfs-config: feat: add DNS.MaxCacheTTL for DNS-over-HTTPS resolvers (#161)

This commit is contained in:
Thibault Meunier 2022-01-20 20:04:53 +01:00 committed by GitHub
parent a6008f0e36
commit 9a0bd0fa7a

View File

@ -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"`
}