summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-12-16 18:05:07 +0100
committerJo-Philipp Wich <jo@mein.io>2019-12-16 18:05:49 +0100
commitffe81aead3f806f28220034cb6276d89774fa47b (patch)
tree64373282199d9e6133138e329b6b28aedc5c6993 /modules/luci-mod-network
parent3cdd4969466de7efd2cfe0534119acdc6f35218e (diff)
luci-mod-network: dhcp.js: fix default state of nonwildcard
Fixes: #3415 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js1
1 files changed, 1 insertions, 0 deletions
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 430dc6601..9f1f8dc57 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
@@ -370,6 +370,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;