diff options
| author | Michael Biebl <biebl@debian.org> | 2022-02-19 17:20:24 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2022-02-19 17:20:24 +0100 |
| commit | 7395026400b90013683a94e52692e22187024fff (patch) | |
| tree | 77924064bace3a47d5475791ad84e9fe8e87c9dc /src/core/nm-policy.c | |
| parent | a100b655aac1ea8feba6a27bdd7ab321e9a2aeb6 (diff) | |
| parent | e3f2ee969d065d2971170563c8aef77d5a0d39b9 (diff) | |
Update upstream source from tag 'upstream/1.35.92'
Update to upstream version '1.35.92' with Debian dir ea5f9880f6c04d63ab43dacd1d2ca9b7eb35c20c
Diffstat (limited to 'src/core/nm-policy.c')
| -rw-r--r-- | src/core/nm-policy.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/nm-policy.c b/src/core/nm-policy.c index cb5b543e..d77fc0a0 100644 --- a/src/core/nm-policy.c +++ b/src/core/nm-policy.c @@ -2005,7 +2005,8 @@ device_state_changed(NMDevice *device, AF_UNSPEC, device, nm_device_get_l3cd(device, TRUE), - NM_DNS_IP_CONFIG_TYPE_DEFAULT, + nm_device_is_vpn(device) ? NM_DNS_IP_CONFIG_TYPE_VPN + : NM_DNS_IP_CONFIG_TYPE_DEFAULT, TRUE); } update_ip_dns(self, AF_INET, device); @@ -2147,7 +2148,8 @@ device_l3cd_changed(NMDevice *device, AF_UNSPEC, device, l3cd_new, - NM_DNS_IP_CONFIG_TYPE_DEFAULT, + nm_device_is_vpn(device) ? NM_DNS_IP_CONFIG_TYPE_VPN + : NM_DNS_IP_CONFIG_TYPE_DEFAULT, TRUE); update_ip_dns(self, AF_INET, device); update_ip_dns(self, AF_INET6, device); |