From c1a2e28f9d32b599a254cdbf5d0d5799b98875ed Mon Sep 17 00:00:00 2001 From: Andy Chiang Date: Tue, 19 May 2026 23:42:18 +0700 Subject: [PATCH] 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 --- .../htdocs/luci-static/resources/view/network/interfaces.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 67a849a9ee..e6124d31af 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 @@ -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.'));