Merge pull request #4053 from TDT-AG/pr/20200515-luci-base
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 19 May 2020 12:06:07 +0000 (14:06 +0200)
committerGitHub <noreply@github.com>
Tue, 19 May 2020 12:06:07 +0000 (14:06 +0200)
luci-base: fix host validation function

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'));
                },