luci-mod-status: iptables.js: fix parsing IP addresses in rules
authorJo-Philipp Wich <jo@mein.io>
Tue, 12 Feb 2019 06:57:35 +0000 (07:57 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 12 Feb 2019 06:57:35 +0000 (07:57 +0100)
commit83df3eb6c7678a5988bc8c9942e9892a24ab6967
treeecc40f4f1e4a16d0c915c8a9acc445f96978a15c
parent8e4780a65d25155ee348dfef1b43cf141447da94
luci-mod-status: iptables.js: fix parsing IP addresses in rules

Rework the regexp pattern to allow both IP addresses without mask
and IPv6 addresses with netmask instead of CIDR notation.

Fixes: #2495, #2530
Fixes: f6bfac211 ("luci-mod-status: rework iptables status page")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-status/htdocs/luci-static/resources/view/status/iptables.js