mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 07:00:09 +01:00
device: fix regression for ignored search domains in ip._config_merge_and_apply()
Reported-by: Fabrice Bellet <fabrice@bellet.info> Fixes:2a5eea7e76https://bugzilla.gnome.org/show_bug.cgi?id=752193 (cherry picked from commitd6831efc6b)
This commit is contained in:
parent
6f6a8a85c9
commit
0eef608cd1
1 changed files with 4 additions and 2 deletions
|
|
@ -3241,10 +3241,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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3852,10 +3853,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