Networkd: Start DHCP server when link is up.

Closes #9479
This commit is contained in:
Susant Sahani 2018-07-09 11:10:54 +05:30 committed by Zbigniew Jędrzejewski-Szmek
parent e09dba97b9
commit 708c425d0a
1 changed files with 1 additions and 1 deletions

View File

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