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:05:49 +0000 (18:05 +0100)
Fixes: #3415
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js

index 430dc6601a2476e6656aab0c824f2136b41a756f..9f1f8dc57f75d7fb59ca76900833ecc4d92b1df7 100644 (file)
@@ -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;