From 6aeda9c4c82ca8cc510e329db391cca965509ab8 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 16 Dec 2019 18:05:07 +0100 Subject: [PATCH] luci-mod-network: dhcp.js: fix default state of nonwildcard Fixes: #3415 Signed-off-by: Jo-Philipp Wich (cherry picked from commit ffe81aead3f806f28220034cb6276d89774fa47b) --- .../htdocs/luci-static/resources/view/network/dhcp.js | 1 + 1 file changed, 1 insertion(+) 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; -- 2.25.1