mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
go-ipfs-config: feat: add DNS.MaxCacheTTL for DNS-over-HTTPS resolvers (#161)
This commit is contained in:
parent
a6008f0e36
commit
9a0bd0fa7a
@ -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"`
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user