jhthorsen/net-isc-dhcpd

Unable to parse a config with "authoritative" within shared-network blocks

Closed this issue · 0 comments

cjs59 commented

I am experiencing the same issue as described in issues #4, #10 and #15, however in my case the authoritative statement is inside a shared-network block. According to the dhcpd.conf manpage, this is the correct place to put the authoritative statement in cases where there are multiple subnets on a single network segment, and other network segments for which this server is not authoritative.

Adding "Net::ISC::DHCPd::Config::Authoritative" to the list returned by the sub "children" in Net/ISC/DHCPd/Config/SharedNetwork.pm fixes this bug for me.