diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-02-18 13:58:52 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-02-18 14:00:08 +0100 |
commit | c3b07fb3586500afb6395bef6fe05ac8ae008df7 (patch) | |
tree | 0e7718dd33a6a50fe3b1f4f05d565cb073abc461 /modules/luci-mod-status/htdocs/luci-static/resources/view/status/iptables.js | |
parent | 7f597ef542bc0bc3053e0ac7a1fa21200707ab32 (diff) |
luci-mod-status: don't drop lines with negated addresses
Fixes: #3642
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-status/htdocs/luci-static/resources/view/status/iptables.js')
-rw-r--r-- | modules/luci-mod-status/htdocs/luci-static/resources/view/status/iptables.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/iptables.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/iptables.js index 04abcba9d..fc7c7cdd1 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/iptables.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/iptables.js @@ -130,7 +130,7 @@ return L.view.extend({ else if (m[1].match(/^num /)) { continue; } - else if ((m2 = m[1].match(/^(\d+) +(\d+) +(\d+) +(.*?) +(\S+) +(\S*) +(\S+) +(\S+) +([a-f0-9:.]+(?:\/[a-f0-9:.]+)?) +([a-f0-9:.]+(?:\/[a-f0-9:.]+)?) +(.+)$/)) !== null) { + else if ((m2 = m[1].match(/^(\d+) +(\d+) +(\d+) +(.*?) +(\S+) +(\S*) +(\S+) +(\S+) +(!?[a-f0-9:.]+(?:\/[a-f0-9:.]+)?) +(!?[a-f0-9:.]+(?:\/[a-f0-9:.]+)?) +(.+)$/)) !== null) { var num = +m2[1], pkts = +m2[2], bytes = +m2[3], |