summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2020-05-19 14:06:07 +0200
committerGitHub <noreply@github.com>2020-05-19 14:06:07 +0200
commitaac1a8d512643e3864843d2c2b3c6ee7f7f2a3d2 (patch)
treed17df218ed644b268e1a1faa30f17dfa2554ba36 /modules/luci-base
parent4a378e628bff2d208af3b457a17c20866778a490 (diff)
parentc8d24f04de577156236561131f3e4ea9620c46bd (diff)
Merge pull request #4053 from TDT-AG/pr/20200515-luci-base
luci-base: fix host validation function
Diffstat (limited to 'modules/luci-base')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/validation.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/validation.js b/modules/luci-base/htdocs/luci-static/resources/validation.js
index 769d2a955..d47392c23 100644
--- a/modules/luci-base/htdocs/luci-static/resources/validation.js
+++ b/modules/luci-base/htdocs/luci-static/resources/validation.js
@@ -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'));
},