luci-app-statistics: iptables.js: fix rule match expression
Fixes: #3658 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
c16f91ccb9
commit
27d63e7e71
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ return L.Class.extend({
|
||||||
table = m[1];
|
table = m[1];
|
||||||
count = {};
|
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;
|
count[m[1]] = (count[m[1]] || 0) + 1;
|
||||||
|
|
||||||
iptables[table] = iptables[table] || {};
|
iptables[table] = iptables[table] || {};
|
||||||
|
|
Loading…
Reference in a new issue