From: Andy Chiang Date: Tue, 19 May 2026 16:42:18 +0000 (+0700) Subject: luci-mod-network: dhcpv4 option uses '' instead of "disabled" X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=c1a2e28f9d32b599a254cdbf5d0d5799b98875ed;p=openwrt-luci.git 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 --- 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.'));