luci-mod-network: improve static lease ip validation logic
authorPaul Donald <newtwen@gmail.com>
Thu, 25 Jan 2024 00:05:15 +0000 (01:05 +0100)
committerPaul Donald <newtwen@gmail.com>
Thu, 25 Jan 2024 00:27:51 +0000 (01:27 +0100)
commit31eaf011a75126c2e35e14dba0337eb083569b7e
tree19f03d86006873bb8347c6441f2a614e0bff9f80
parent51c817cde61b0e7b96cb5761a82e34d6265827cf
luci-mod-network: improve static lease ip validation logic

m (mac) is an array, and is zero length or greater.

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit f6cbda00e77afc26c12da3c31e5f5444cee17422)
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js