diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-02-21 08:56:48 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-02-21 08:57:29 +0100 |
commit | 27d63e7e7157bcc72658533709633afd826ebbde (patch) | |
tree | c863e6a308ef46c1828ca765fa95d5e92e07c2a8 /applications/luci-app-statistics | |
parent | c16f91ccb9d28689f9c4fb2b2c35911a6c60fd2a (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')
-rw-r--r-- | applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/iptables.js | 2 |
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] || {}; |