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>
Thu, 7 May 2020 17:40:49 +0000 (19:40 +0200)
commit4083b78fc6e5a4386d4f3ee3aa6f81edf15bfd7e
treef807caa6b060959e54a243e90dc23247ba77a684
parent57d3b3b74a7d07dc99eb845356dddfcfa1ca71a1
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>
(cherry picked from commit 137db1c4d1bac4000f9c17150ac286b73787ce20)
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js