luci-base: validation.js: add iprange, iprange4 and iprange6 validators
authorJo-Philipp Wich <jo@mein.io>
Wed, 21 Feb 2024 13:37:03 +0000 (14:37 +0100)
committerPaul Donald <newtwen@gmail.com>
Thu, 7 Mar 2024 00:29:06 +0000 (01:29 +0100)
commit812fdf218f1122d8027ac1fbfc2e578960c470d8
treebc331071491f056369cfca3fc4d1091485a3378d
parent0e01542eeea5be2a817391094154d2db4208e01e
luci-base: validation.js: add iprange, iprange4 and iprange6 validators

Add datatype validators for IP address ranges which are required for certain
firewall inputs.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit cf09f89df307f2e9d2b5dda152c571b3d0d1550d)
modules/luci-base/htdocs/luci-static/resources/validation.js