luci-mod-network: dhcpv4 option uses '' instead of "disabled"
authorAndy Chiang <redacted>
Tue, 19 May 2026 16:42:18 +0000 (23:42 +0700)
committerPaul Donald <redacted>
Wed, 27 May 2026 11:32:38 +0000 (14:32 +0300)
"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 <redacted>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js

index 67a849a9ee88a7031637c0f9bbb83d6d80a9a3b1..e6124d31af0000d19e9dbaccf24e5bfdb25dd3e8 100644 (file)
@@ -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.'));
git clone https://git.99rst.org/PROJECT