luci-base: firewall.js: fix Zone.addRule()
authorJo-Philipp Wich <jo@mein.io>
Mon, 4 May 2020 19:29:01 +0000 (21:29 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 4 May 2020 19:29:01 +0000 (21:29 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/firewall.js

index 40a0354446d22d31421c9b66b5bc196b994f44e9..f7b731e6fcafc60c8302ec9edd481a8298594f5e 100644 (file)
@@ -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) {