mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 04:40:09 +01:00
dns: fix falling back in the resolv.conf methods
This commit is contained in:
parent
02877dcd30
commit
59b64ffa82
1 changed files with 4 additions and 1 deletions
|
|
@ -782,13 +782,16 @@ update_dns (NMDnsManager *self,
|
|||
|
||||
#ifdef NETCONFIG_PATH
|
||||
if (success == FALSE) {
|
||||
g_clear_error (error);
|
||||
success = dispatch_netconfig (searches, nameservers,
|
||||
nis_domain, nis_servers, error);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (success == FALSE)
|
||||
if (success == FALSE) {
|
||||
g_clear_error (error);
|
||||
success = update_resolv_conf (searches, nameservers, error);
|
||||
}
|
||||
|
||||
/* signal that resolv.conf was changed */
|
||||
if (success)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue