luci-mod-network: dhcp.js: allow lease hostname to be empty

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2020-04-11 18:34:54 +02:00
parent 137db1c4d1
commit 57f27cf7f8

View file

@ -66,6 +66,9 @@ CBILease6Status = form.DummyValue.extend({
});
function validateHostname(sid, s) {
if (s == null || s == '')
return true;
if (s.length > 256)
return _('Expecting: %s').format(_('valid hostname'));