Merge pull request #4053 from TDT-AG/pr/20200515-luci-base
[project/luci.git] / modules / luci-base / htdocs / luci-static / resources / validation.js
index 769d2a955376093fa5f4f72c965e4ef3bb9a8601..d47392c2392ff5d4796a225572d5590afcc499fb 100644 (file)
@@ -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'));
                },