Update dnsproxy to 0.11.0

This commit is contained in:
Andrey Meshkov
2019-02-22 18:16:47 +03:00
parent 4e1c1618cb
commit ad4b58472f
5 changed files with 13 additions and 9 deletions

6
dns.go
View File

@@ -59,7 +59,11 @@ func generateServerConfig() dnsforward.ServerConfig {
}
for _, u := range config.DNS.UpstreamDNS {
dnsUpstream, err := upstream.AddressToUpstream(u, config.DNS.BootstrapDNS, dnsforward.DefaultTimeout)
opts := upstream.Options{
Timeout: dnsforward.DefaultTimeout,
Bootstrap: []string{config.DNS.BootstrapDNS},
}
dnsUpstream, err := upstream.AddressToUpstream(u, opts)
if err != nil {
log.Printf("Couldn't get upstream: %s", err)
// continue, just ignore the upstream