luci-mod-network: fixes to DHCP lease validation
authorJo-Philipp Wich <jo@mein.io>
Sat, 3 Jul 2021 18:40:29 +0000 (20:40 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sat, 3 Jul 2021 18:40:29 +0000 (20:40 +0200)
commit9d15a4e70c10a43911c7f9d48240a01c23eb81b6
treea45f2bf0eb0cd2e503c478c070f4813945f5caab
parent00e41c3c4977f75e6ca43429dd4c8c2f5cb22419
luci-mod-network: fixes to DHCP lease validation

 - validate current form value IP instead of stored uci one
 - ensure to not pass non-string values to the validator
 - remove leftover debug code
 - simplify obtaining formvalues

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js