mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 20:20:09 +01:00
device: fix handling if DHCP hostname for configure-and-quit
Fixes:5149fd120d(cherry picked from commit1dae47e9cc)
This commit is contained in:
parent
2da6daea17
commit
a8833a4dbd
1 changed files with 1 additions and 1 deletions
|
|
@ -7441,7 +7441,7 @@ nm_device_spawn_iface_helper (NMDevice *self)
|
|||
}
|
||||
|
||||
hostname = nm_dhcp_client_get_hostname (priv->dhcp4_client);
|
||||
if (client_id) {
|
||||
if (hostname) {
|
||||
g_ptr_array_add (argv, g_strdup ("--dhcp4-hostname"));
|
||||
g_ptr_array_add (argv, g_strdup (hostname));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue