ipn: put Magic DNS domains first

Signed-off-by: Dmytro Shynkevych <dmytro@tailscale.com>
pull/642/head
Dmytro Shynkevych 2020-08-04 20:13:30 -04:00
parent 7c38db0c97
commit 934c63115e
No known key found for this signature in database
GPG Key ID: FF5E2F3DAD97EA23
1 changed files with 2 additions and 1 deletions

View File

@ -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{