luci-mod-network: add odhcpd cfg in DHCP server setup
authorDavid Härdeman <[email protected]>
Sat, 25 Oct 2025 22:02:32 +0000 (00:02 +0200)
committerPaul Donald <[email protected]>
Sun, 26 Oct 2025 03:11:06 +0000 (04:11 +0100)
commite4e707a93baf615f9b1dab37044428225362c52b
treed62b9b109c8ac3b28d0326d618ba40220e902323
parente2f02198f9010152022ad15ffe2635fc490bf96a
luci-mod-network: add odhcpd cfg in DHCP server setup

The "Set up DHCP Server" button is meant to setup the basics for a DHCP server
on the given interface.  Add odhcpd setting "dhcpv4" as well. It is a no-op in
case odhcpd isn't setup to take care of DHCPv4 as well, but it makes it easier
to support either dnsmasq or odhpcd as the DHCPv4 server.

One might argue that the button should also set dhcpv6=server and ra=server, so
that it doesn't only setup a DHCPv4 server, but also prepares a DHCPv6 server,
but that's for another PR :)

Signed-off-by: David Härdeman <[email protected]>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js