config: fix dhcpv4 server being started
authorHans Dedecker <dedeckeh@gmail.com>
Thu, 11 May 2017 09:08:48 +0000 (11:08 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Thu, 11 May 2017 10:19:50 +0000 (12:19 +0200)
commit29cb2ff9ebce36884ee517cbe39b440d5eb57914
treed25e57a30372abd8289dbce0900d8d64f49ca2bd
parent0ef74ec9c86a35adcba042f4810ef6b53d7efaaf
config: fix dhcpv4 server being started

In case maindhcp is set to disabled in global config one expect the DHCPv4
server not being started irrespective if the dhcpv4 interface config is set
to server.
Fix this by keeping maindhcp config apart from the legacy config parameter
as already documented in the README.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
README
src/config.c
src/odhcpd.h