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>
Mon, 2 Oct 2017 16:35:03 +0000 (18:35 +0200)
commitc6f3d5d4ea5154e5971fa0b1b1e9a9c07119429f
tree3a3750f15f3d6bcadfd315a9a7904ebe306eed4d
parent336212cf315374ded98cd3865ea5927e783b6780
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