mirror of
https://github.com/systemd/systemd.git
synced 2026-08-08 17:10:55 +00:00
networkd: send dhcp timezone option when UseTimezone is true (#6725)
This commit is contained in:
committed by
Lennart Poettering
parent
0fe36dd930
commit
89573b3728
@@ -641,9 +641,11 @@ int dhcp4_configure(Link *link) {
|
||||
return r;
|
||||
}
|
||||
|
||||
r = sd_dhcp_client_set_request_option(link->dhcp_client, SD_DHCP_OPTION_NEW_TZDB_TIMEZONE);
|
||||
if (r < 0)
|
||||
return r;
|
||||
if (link->network->dhcp_use_timezone) {
|
||||
r = sd_dhcp_client_set_request_option(link->dhcp_client, SD_DHCP_OPTION_NEW_TZDB_TIMEZONE);
|
||||
if (r < 0)
|
||||
return r;
|
||||
}
|
||||
|
||||
r = dhcp4_set_hostname(link);
|
||||
if (r < 0)
|
||||
|
||||
Reference in New Issue
Block a user