From: Jo-Philipp Wich Date: Mon, 16 Dec 2019 17:05:07 +0000 (+0100) Subject: luci-mod-network: dhcp.js: fix default state of nonwildcard X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6aeda9c4c82ca8cc510e329db391cca965509ab8;p=oweals%2Fluci.git luci-mod-network: dhcp.js: fix default state of nonwildcard Fixes: #3415 Signed-off-by: Jo-Philipp Wich (cherry picked from commit ffe81aead3f806f28220034cb6276d89774fa47b) --- diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js index 97befef29..16fd83f47 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js @@ -369,6 +369,7 @@ return L.view.extend({ o = s.taboption('general', form.Flag, 'nonwildcard', _('Non-wildcard'), _('Bind dynamically to interfaces rather than wildcard address (recommended as linux default)')); + o.default = o.enabled; o.optional = false; o.rmempty = true;