luci-base: fix host validation function 4053/head
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 13 May 2020 09:57:38 +0000 (11:57 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Tue, 19 May 2020 12:05:26 +0000 (14:05 +0200)
commitc8d24f04de577156236561131f3e4ea9620c46bd
tree2f03a9bc1bec6cafa6e93aa7b1208badcbc98a53
parentda7c3d920274f50f9872103f9aa4cf2a283b3d11
luci-base: fix host validation function

Allow only ipv4 or ipv6 addresses without IP mask.
A host IP with mask does not make sense in this context.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
modules/luci-base/htdocs/luci-static/resources/validation.js