* config: set default DNS server as IP addresses

* config: add "1.0.0.1" to default bootstrap addresses
This commit is contained in:
Simon Zolin 2019-08-13 11:52:06 +03:00
parent 5c3dfd114c
commit 9d7285e42c
1 changed files with 5 additions and 2 deletions

View File

@ -112,8 +112,11 @@ type dnsConfig struct {
UpstreamDNS []string `yaml:"upstream_dns"`
}
var defaultDNS = []string{"https://dns.cloudflare.com/dns-query"}
var defaultBootstrap = []string{"1.1.1.1"}
var defaultDNS = []string{
"https://1.1.1.1/dns-query",
"https://1.0.0.1/dns-query",
}
var defaultBootstrap = []string{"1.1.1.1", "1.0.0.1"}
type tlsConfigSettings struct {
Enabled bool `yaml:"enabled" json:"enabled"` // Enabled is the encryption (DOT/DOH/HTTPS) status