luci-mod-network: stricter feature check for odhcpd
authorDavid Härdeman <[email protected]>
Thu, 23 Oct 2025 17:27:29 +0000 (19:27 +0200)
committerPaul Donald <[email protected]>
Sat, 25 Oct 2025 13:31:08 +0000 (15:31 +0200)
Only show the DHCPv4 option if support is compiled in.

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

index 5d21dd0da0573c9db94f396dbb1c8741cedbc9cb..347adea58568a8bd667730b5ceb8f6bd9e31cde2 100644 (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;