Skip to content

Commit

Permalink
Networkd: Start DHCP server when link is up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Susant Sahani authored and keszybz committed Aug 23, 2018
1 parent e09dba9 commit 708c425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/networkd-link.c
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ static int link_enter_set_addresses(Link *link) {

/* now that we can figure out a default address for the dhcp server,
start it */
if (link_dhcp4_server_enabled(link)) {
if (link_dhcp4_server_enabled(link) && (link->flags & IFF_UP)) {
Address *address;
Link *uplink = NULL;
bool acquired_uplink = false;
Expand Down

0 comments on commit 708c425

Please sign in to comment.