From dd3dfad5835eea7617d883d4c665c0be66fa09f7 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Mon, 23 May 2016 15:02:20 +0200 Subject: [PATCH] dns/dnsmasq: use servers without split DNS if no domain was received When a VPN server doesn't push any DNS domain, we want to use the received servers for all queries. https://bugzilla.gnome.org/show_bug.cgi?id=766769 --- src/dns-manager/nm-dns-dnsmasq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dns-manager/nm-dns-dnsmasq.c b/src/dns-manager/nm-dns-dnsmasq.c index 4cee160890..967383441f 100644 --- a/src/dns-manager/nm-dns-dnsmasq.c +++ b/src/dns-manager/nm-dns-dnsmasq.c @@ -138,12 +138,11 @@ add_ip4_config (NMDnsDnsmasq *self, GVariantBuilder *servers, NMIP4Config *ip4, for (iter = domains; iter && *iter; iter++) add_dnsmasq_nameserver (self, servers, buf, *iter); g_strfreev (domains); - added = TRUE; } } } - /* If no searches or domains, just add the namservers */ + /* If no searches or domains, just add the nameservers */ if (!added) { for (i = 0; i < nnameservers; i++) { addr = nm_ip4_config_get_nameserver (ip4, i);