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:
parent
137db1c4d1
commit
57f27cf7f8
1 changed files with 3 additions and 0 deletions
|
@ -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'));
|
||||
|
||||
|
|
Loading…
Reference in a new issue