ipn: put Magic DNS domains first

Signed-off-by: Dmytro Shynkevych <dmytro@tailscale.com>
pull/642/head
Dmytro Shynkevych 5 years ago
parent 7c38db0c97
commit 934c63115e
No known key found for this signature in database
GPG Key ID: FF5E2F3DAD97EA23

@ -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…
Cancel
Save