From: David Härdeman Date: Thu, 23 Oct 2025 17:27:29 +0000 (+0200) Subject: luci-mod-network: stricter feature check for odhcpd X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=b5e94d3c8a3bf22cfeade813707b1f119683c0cb;p=project%2Fluci.git luci-mod-network: stricter feature check for odhcpd Only show the DHCPv4 option if support is compiled in. Signed-off-by: David Härdeman --- diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js index 5d21dd0da0..347adea585 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js @@ -735,7 +735,7 @@ return view.extend({ _('Define additional DHCP options, for example "6,192.168.2.1,192.168.2.2" 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;