luci-base: validation: disallow mutlicast MACs by default
authorJo-Philipp Wich <jo@mein.io>
Sat, 3 Jul 2021 18:10:22 +0000 (20:10 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sat, 3 Jul 2021 18:12:33 +0000 (20:12 +0200)
commit00e41c3c4977f75e6ca43429dd4c8c2f5cb22419
treed95a923874ceb9ecac20840aad6cf9c34c6a6ad7
parent38400c484e0f19307e374c8dc1d8084bbf61f1f4
luci-base: validation: disallow mutlicast MACs by default

Extend the MAC address validator to disallow multicast MAC addresses and
add a new optional validator option to require multicast MACs instead of
unicast ones.

Fixes: #5166
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/validation.js