diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-02-16 00:20:55 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-02-16 00:27:37 +0100 |
commit | 21784446c1d0e1e9b2433727986e04a7e7ff86e5 (patch) | |
tree | a76194db2bc6777dde926a5a1dcdf56a872d2f1e /applications/luci-app-firewall | |
parent | 1f525bda497a271525627d5c04ae2c87ee6a73a7 (diff) |
luci-app-firewall: fix setting unspecified zone on forwardings
Fixes: #5685
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-firewall')
-rw-r--r-- | applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js index 19274dfd3b..cbd4362049 100644 --- a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js +++ b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js @@ -149,9 +149,10 @@ return view.extend({ var config_name = this.uciconfig || this.map.config, section_id = uci.add(config_name, this.sectiontype); + uci.set(config_name, section_id, 'dest', 'lan'); uci.set(config_name, section_id, 'target', 'DNAT'); - this.addedSection = section_id; + m.addedSection = section_id; this.renderMoreOptionsModal(section_id); }; @@ -229,7 +230,6 @@ return view.extend({ o.modalonly = true; o.rmempty = true; o.nocreate = true; - o.default = 'lan'; o = fwtool.addIPOption(s, 'general', 'dest_ip', _('Internal IP address'), _('Redirect matched incoming traffic to the specified internal host'), 'ipv4', hosts); |