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 913896721d)
This commit is contained in:
Beniamino Galvani 2017-02-24 14:24:54 +01:00
parent 662b1f8b7c
commit f950df775f

View file

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