about summary refs log tree commit diff
path: root/src/core/nm-policy.c
diff options
context:
space:
mode:
authorJeremy Bicha <jeremy.bicha@canonical.com>2022-02-22 16:55:11 -0500
committerJeremy Bicha <jeremy.bicha@canonical.com>2022-02-22 17:04:04 -0500
commit9bb70a1702d95481541916bd29903a8d75251831 (patch)
tree5af847e78e5836ffd841714b541636729675d6a6 /src/core/nm-policy.c
parent2ddef01c8fe66feabcd5a33b904ff3a5deb89652 (diff)
parent6dff5938b0e45d461d0351da304a68916f2e9a2b (diff)
Merge tag 'debian/1.35.92-1' into ubuntu/master
network-manager Debian release 1.35.92-1
Diffstat (limited to 'src/core/nm-policy.c')
-rw-r--r--src/core/nm-policy.c6
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);