luci-mod-network: dhcpv4 option uses '' instead of "disabled"

"disabled" is the default dhcpv4 option in odhcpd.
Which has the same effect as not defining it.
Using '' will prevent unnecessary parameters from being written to the flash.

Link https://github.com/openwrt/odhcpd/blob/master/README.md

Signed-off-by: Andy Chiang <AndyChiang_git@outlook.com>
This commit is contained in:
Andy Chiang
2026-05-19 23:42:18 +07:00
committed by Paul Donald
parent bfcfec76ae
commit c1a2e28f9d
@@ -746,7 +746,7 @@ return view.extend({
so = ss.taboption('ipv4', form.RichListValue, 'dhcpv4', _('DHCPv4 Service'),
_('Enable or disable DHCPv4 services on this interface.'));
so.optional = true;
so.value('disabled', _('disabled'),
so.value('', _('disabled'),
_('Do not provide DHCPv4 services on this interface.'));
so.value('server', _('enabled'),
_('Provide DHCPv4 services on this interface.'));