From: Jo-Philipp Wich <jo@mein.io>
Date: Fri, 21 Feb 2020 07:56:48 +0000 (+0100)
Subject: luci-app-statistics: iptables.js: fix rule match expression
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=27d63e7e7157bcc72658533709633afd826ebbde;p=oweals%2Fluci.git

luci-app-statistics: iptables.js: fix rule match expression

Fixes: #3658
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
---

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] || {};