From 27d63e7e7157bcc72658533709633afd826ebbde Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 21 Feb 2020 08:56:48 +0100 Subject: [PATCH] luci-app-statistics: iptables.js: fix rule match expression Fixes: #3658 Signed-off-by: Jo-Philipp Wich --- .../luci-static/resources/view/statistics/plugins/iptables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/iptables.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/iptables.js index a1b67c1b1..00d0ec88f 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/iptables.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/iptables.js @@ -33,7 +33,7 @@ return L.Class.extend({ table = m[1]; count = {}; } - else if ((m = lines[i].match(/^-A (.+?) (-.+)$/)) != null) { + else if ((m = lines[i].match(/^-A (.+?) ([!-].+)$/)) != null) { count[m[1]] = (count[m[1]] || 0) + 1; iptables[table] = iptables[table] || {}; -- 2.25.1