summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/htdocs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-02-21 08:56:48 +0100
committerJo-Philipp Wich <jo@mein.io>2020-02-21 08:57:29 +0100
commit27d63e7e7157bcc72658533709633afd826ebbde (patch)
treec863e6a308ef46c1828ca765fa95d5e92e07c2a8 /applications/luci-app-statistics/htdocs
parentc16f91ccb9d28689f9c4fb2b2c35911a6c60fd2a (diff)
luci-app-statistics: iptables.js: fix rule match expression
Fixes: #3658 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-statistics/htdocs')
-rw-r--r--applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/iptables.js2
1 files changed, 1 insertions, 1 deletions
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 a1b67c1b17..00d0ec88ff 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] || {};