luci-mod-network: dhcp.js: fix validation logic
authorJo-Philipp Wich <jo@mein.io>
Sat, 11 Apr 2020 16:19:59 +0000 (18:19 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sat, 11 Apr 2020 16:27:36 +0000 (18:27 +0200)
commit137db1c4d1bac4000f9c17150ac286b73787ce20
tree5f089920886f0c1b527501fd913b05b4895c4144
parentf2749c7314eb5129bba3ef6d5e0947b33dc2101c
luci-mod-network: dhcp.js: fix validation logic

The `server` option allows plain IPs besides the `/domain/addr` format.

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