From: Jo-Philipp Wich Date: Mon, 4 May 2020 19:29:01 +0000 (+0200) Subject: luci-base: firewall.js: fix Zone.addRule() X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bb19cb048ac902674a14ee602b5fcc852de61779;p=oweals%2Fluci.git luci-base: firewall.js: fix Zone.addRule() Signed-off-by: Jo-Philipp Wich (cherry picked from commit 28cf5cd576a7d502bcbfc55c1418dd116f2210e0) --- diff --git a/modules/luci-base/htdocs/luci-static/resources/firewall.js b/modules/luci-base/htdocs/luci-static/resources/firewall.js index 40a035444..f7b731e6f 100644 --- a/modules/luci-base/htdocs/luci-static/resources/firewall.js +++ b/modules/luci-base/htdocs/luci-static/resources/firewall.js @@ -493,7 +493,7 @@ Zone = AbstractFirewallItem.extend({ uci.set('firewall', sid, 'src', this.getName()); - return new Redirect(sid); + return new Rule(sid); }, getColor: function(forName) {