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:38:52 +0000 (01:38 +0100)
commit84293b8d684db7bd684de3e83a696db7935ea7f5
treeaa8c5527777ac1eca73c6b9c6f021e294cb2ea0d
parent947ac215f41680dd05d8a4f19c215aa07846647c
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