luci-mod-network: fix address validation 6063/head
authorKyle Schwarz <zeranoe@gmail.com>
Sat, 19 Nov 2022 21:33:55 +0000 (16:33 -0500)
committerKyle Schwarz <zeranoe@gmail.com>
Sat, 19 Nov 2022 21:34:04 +0000 (16:34 -0500)
commitde9341648aba82ebbf4af1843854dffb9e63322e
tree09d4aa2bde52efaeb95e976186ade4895971ff6b
parent12487d4c11976e6ce20232e179d73c84a650b376
luci-mod-network: fix address validation

Fixes --server validation for:
- /domain[/domain]
- //
- /#/

Fixes hostname validation for:
- *.domain
- *domain

Changes ..domain to be an invalid hostname

Signed-off-by: Kyle Schwarz <zeranoe@gmail.com>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js