1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-24 06:04:05 +03:00

networkd: send dhcp timezone option when UseTimezone is true (#6725)

This commit is contained in:
juga0 2017-09-06 08:10:50 +00:00 committed by Lennart Poettering
parent 0fe36dd930
commit 89573b3728

View File

@ -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)