mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 12:28:11 +02:00
core: release DHCP lease when requested instead of always
This commit is contained in:
parent
e39449caef
commit
e63dc96a8f
1 changed files with 4 additions and 1 deletions
|
|
@ -1573,8 +1573,11 @@ nm_device_dhcp4_renew (NMDevice *self, gboolean release)
|
||||||
|
|
||||||
g_return_val_if_fail (priv->dhcp4_client != NULL, FALSE);
|
g_return_val_if_fail (priv->dhcp4_client != NULL, FALSE);
|
||||||
|
|
||||||
|
nm_log_info (LOGD_DHCP4, "(%s): DHCPv4 lease renewal requested",
|
||||||
|
nm_device_get_iface (self));
|
||||||
|
|
||||||
/* Terminate old DHCP instance and release the old lease */
|
/* Terminate old DHCP instance and release the old lease */
|
||||||
dhcp4_cleanup (self, TRUE, TRUE);
|
dhcp4_cleanup (self, TRUE, release);
|
||||||
|
|
||||||
req = nm_device_get_act_request (self);
|
req = nm_device_get_act_request (self);
|
||||||
g_assert (req);
|
g_assert (req);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue