mirror of
https://git.openwrt.org/project/luci.git
synced 2025-11-01 06:21:40 +08:00
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:
committed by
Paul Donald
parent
3a5240e852
commit
b5e94d3c8a
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user