mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 02:10:09 +01:00
device: fix regression for ignored search domains in ip._config_merge_and_apply()
Reported-by: Fabrice Bellet <fabrice@bellet.info>
Fixes: 79630c11e5
https://bugzilla.gnome.org/show_bug.cgi?id=752193
This commit is contained in:
parent
db44539912
commit
d6831efc6b
1 changed files with 4 additions and 2 deletions
|
|
@ -3281,10 +3281,11 @@ ip4_config_merge_and_apply (NMDevice *self,
|
|||
if (s_ip4) {
|
||||
if (nm_setting_ip_config_get_ignore_auto_routes (s_ip4))
|
||||
nm_ip4_config_reset_routes (composite);
|
||||
if (nm_setting_ip_config_get_ignore_auto_dns (s_ip4))
|
||||
if (nm_setting_ip_config_get_ignore_auto_dns (s_ip4)) {
|
||||
nm_ip4_config_reset_nameservers (composite);
|
||||
nm_ip4_config_reset_domains (composite);
|
||||
nm_ip4_config_reset_searches (composite);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3895,10 +3896,11 @@ ip6_config_merge_and_apply (NMDevice *self,
|
|||
if (s_ip6) {
|
||||
if (nm_setting_ip_config_get_ignore_auto_routes (s_ip6))
|
||||
nm_ip6_config_reset_routes (composite);
|
||||
if (nm_setting_ip_config_get_ignore_auto_dns (s_ip6))
|
||||
if (nm_setting_ip_config_get_ignore_auto_dns (s_ip6)) {
|
||||
nm_ip6_config_reset_nameservers (composite);
|
||||
nm_ip6_config_reset_domains (composite);
|
||||
nm_ip6_config_reset_searches (composite);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue