luci-mod-network: stricter feature check for odhcpd

Only show the DHCPv4 option if support is compiled in.

Signed-off-by: David Härdeman <david@hardeman.nu>
This commit is contained in:
David Härdeman
2025-10-23 19:27:29 +02:00
committed by Paul Donald
parent 3a5240e852
commit b5e94d3c8a

View File

@ -735,7 +735,7 @@ return view.extend({
_('Define additional DHCP options, for example "<code>6,192.168.2.1,192.168.2.2</code>" which advertises different DNS servers to clients (dnsmasq only).'));
}
if (L.hasSystemFeature('odhcpd')) {
if (L.hasSystemFeature('odhcpd', 'dhcpv4')) {
so = ss.taboption('ipv4', form.RichListValue, 'dhcpv4', _('DHCPv4 Service'),
_('Enable or disable DHCPv4 services on this interface (odhcpd only).'));
so.optional = true;