Merge pull request #4053 from TDT-AG/pr/20200515-luci-base
luci-base: fix host validation function
This commit is contained in:
commit
aac1a8d512
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ var ValidatorFactory = baseclass.extend({
|
|||
},
|
||||
|
||||
host: function(ipv4only) {
|
||||
return this.assert(this.apply('hostname') || this.apply(ipv4only == 1 ? 'ip4addr' : 'ipaddr'),
|
||||
return this.assert(this.apply('hostname') || this.apply(ipv4only == 1 ? 'ip4addr' : 'ipaddr', null, ['nomask']),
|
||||
_('valid hostname or IP address'));
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue