luci-mod-network: dhcp.js: fix default state of nonwildcard
authorJo-Philipp Wich <jo@mein.io>
Mon, 16 Dec 2019 17:05:07 +0000 (18:05 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 16 Dec 2019 17:06:03 +0000 (18:06 +0100)
Fixes: #3415
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit ffe81aead3f806f28220034cb6276d89774fa47b)

modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js

index 97befef290759a56f12ae5223849b68b2cc91fe5..16fd83f4720e3bfcb16911208e48d11652f05836 100644 (file)
@@ -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;