@cryptotaxi247 / kubo / commits / 28553d793

go-ipfs-config: simplify DNS config

vyzo committed Apr 13, 2021 at 17:32 UTC 28553d793ad0e52129102d094b249a0893ee96c5
1 file changed +3 -6
config/dns.go
+3 -6
@@ -1,10 +1,7 @@
1 package config
2
3 -// DNSConfig specifies custom resolvers using DoH
3 +// DNSConfig specifies DNS resolution rules using custom resolvers
4 type DNSConfig struct {
5 - // DefaultResolver, if present, is a URL for the default DoH resolver.
6 - // If empty, DNS resolution will use the system resolver.
7 - DefaultResolver string `json:",omitempty"`
8 - // CustomResolvers is a map of domains to URLs for custom DoH resolution.
9 - CustomResolvers map[string]string `json:",omitempty"`
5 + // CustomResolvers is a map of FQDNs to URLs for custom DNS resolution.
6 + Resolvers map[string]string
7 }