ipn: put Magic DNS domains first
Signed-off-by: Dmytro Shynkevych <dmytro@tailscale.com>pull/642/head
parent
7c38db0c97
commit
934c63115e
|
@ -939,7 +939,8 @@ func (b *LocalBackend) authReconfig() {
|
||||||
b.logf("[unexpected] dns proxied but no nameservers")
|
b.logf("[unexpected] dns proxied but no nameservers")
|
||||||
proxied = false
|
proxied = false
|
||||||
} else {
|
} else {
|
||||||
domains = append(domains, domainsForProxying(nm)...)
|
// Domains for proxying should come first to avoid leaking queries.
|
||||||
|
domains = append(domainsForProxying(nm), domains...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rcfg.DNS = dns.Config{
|
rcfg.DNS = dns.Config{
|
||||||
|
|
Loading…
Reference in New Issue