luci-base: add a strict flag to the hostname validator
authorJo-Philipp Wich <jo@mein.io>
Thu, 22 Mar 2018 08:49:52 +0000 (09:49 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 4 Apr 2018 21:21:53 +0000 (23:21 +0200)
Some applications, e.g. dnsmasq, do not allow hostnames starting with an
underscore, therefor extend the existing hostname datatype validator with
a `strict` which disallows a leading underscore.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>

No differences found