mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 09:28:06 +02:00
policy: always check for hostname from DHCPv6 in update_system_hostname()
There is no reason for if-else-if. If DHCPv4 doesn't provide a hostname (but we are doing DHCP), just check for DHCPv6.
This commit is contained in:
parent
9574472f9b
commit
8881c11f93
1 changed files with 3 additions and 1 deletions
|
|
@ -683,7 +683,9 @@ update_system_hostname (NMPolicy *self, NMDevice *best4, NMDevice *best6, const
|
|||
dhcp_hostname);
|
||||
}
|
||||
}
|
||||
} else if (best6) {
|
||||
}
|
||||
|
||||
if (best6) {
|
||||
NMDhcp6Config *dhcp6_config;
|
||||
|
||||
/* Grab a hostname out of the device's DHCP6 config */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue