core: fix DNS configuration type for wireguard connections
The DNS configuration for a wireguard connection should be added with
type "VPN".
Fixes: 58287cbcc0
('core: rework IP configuration in NetworkManager using layer 3 configuration')
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1102
This commit is contained in:
@@ -2008,7 +2008,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);
|
||||
@@ -2150,7 +2151,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);
|
||||
|
Reference in New Issue
Block a user