Skip to content

Commit

Permalink
networkd: fix #2282
Browse files Browse the repository at this point in the history
Respect DHCP UseRoutes=

This fixes 2282
  • Loading branch information
Susant Sahani committed Apr 20, 2016
1 parent 409472c commit 1cc96ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/network/networkd-dhcp4.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ static int link_set_dhcp_routes(Link *link) {

assert(link);
assert(link->dhcp_lease);
assert(link->network);

if (!link->network->dhcp_use_routes)
return 0;

r = sd_dhcp_lease_get_router(link->dhcp_lease, &gateway);
if (r < 0 && r != -ENODATA)
Expand Down

0 comments on commit 1cc96ed

Please sign in to comment.