mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-31 13:40:11 +01:00
dns: merge branch 'bg/dns-sort'
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1427
(cherry picked from commit e03b8fa447)
This commit is contained in:
commit
925ea8b24c
1 changed files with 8 additions and 1 deletions
|
|
@ -2039,8 +2039,15 @@ nm_dns_manager_set_ip_config(NMDnsManager *self,
|
|||
|
||||
if (!ip_data) {
|
||||
ip_data = _dns_config_ip_data_new(data, addr_family, source_tag, l3cd, ip_config_type);
|
||||
if (!any_removed)
|
||||
priv->ip_data_lst_need_sort = TRUE;
|
||||
if (!any_removed) {
|
||||
/* `any_removed` tracks whether we deleted any ip_data. If that happened,
|
||||
* we already compared the old and new l3cds and set `changed` accordingly.
|
||||
* Here we only need to set `changed` if we are adding a new ip_data without
|
||||
* removing the old one.
|
||||
*/
|
||||
changed = TRUE;
|
||||
}
|
||||
} else {
|
||||
ip_data->ip_config_type = ip_config_type;
|
||||
changed = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue