mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 04:50:07 +01:00
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:
parent
3b9e612dab
commit
413e522867
1 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue