network: dhcp4: pass IPServiceType=none to dhcp client
Follow-up for b55093ce88.
This commit is contained in:
@@ -1528,7 +1528,7 @@ static int dhcp4_configure(Link *link) {
|
||||
return log_link_debug_errno(link, r, "DHCPv4 CLIENT: Failed to set max attempts: %m");
|
||||
}
|
||||
|
||||
if (link->network->dhcp_ip_service_type > 0) {
|
||||
if (link->network->dhcp_ip_service_type >= 0) {
|
||||
r = sd_dhcp_client_set_service_type(link->dhcp_client, link->network->dhcp_ip_service_type);
|
||||
if (r < 0)
|
||||
return log_link_debug_errno(link, r, "DHCPv4 CLIENT: Failed to set IP service type: %m");
|
||||
|
||||
Reference in New Issue
Block a user