From f950df775f6e71d20d3a912da8a92b3d0095a9b6 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Fri, 24 Feb 2017 14:24:54 +0100 Subject: [PATCH] dns/resolved: consider configuration from unmanaged devices The DNS configuration for VPN connections is associated to the VPN device (tun, ppp, etc.) and that device can be unmanaged by NM: don't ignore such configuration. We do the same for other DNS plugins. https://bugzilla.gnome.org/show_bug.cgi?id=779087 (cherry picked from commit 913896721d7c7c65f7e4a24e8c0d9d275a9dfbaa) --- src/dns/nm-dns-systemd-resolved.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/dns/nm-dns-systemd-resolved.c b/src/dns/nm-dns-systemd-resolved.c index 325088e2f9..ed165618ec 100644 --- a/src/dns/nm-dns-systemd-resolved.c +++ b/src/dns/nm-dns-systemd-resolved.c @@ -118,9 +118,6 @@ add_interface_configuration (NMDnsSystemdResolved *self, device = nm_manager_get_device_by_ifindex (nm_manager_get (), ifindex); - if (!nm_device_get_managed (device, FALSE)) - return; - for (i = 0; i < interfaces->len; i++) { InterfaceConfig *tic = &g_array_index (interfaces, InterfaceConfig, i); if (ifindex == tic->ifindex) {