diff options
author | Florian Eckert <fe@dev.tdt.de> | 2020-05-19 14:06:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-19 14:06:07 +0200 |
commit | aac1a8d512643e3864843d2c2b3c6ee7f7f2a3d2 (patch) | |
tree | d17df218ed644b268e1a1faa30f17dfa2554ba36 /modules | |
parent | 4a378e628bff2d208af3b457a17c20866778a490 (diff) | |
parent | c8d24f04de577156236561131f3e4ea9620c46bd (diff) |
Merge pull request #4053 from TDT-AG/pr/20200515-luci-base
luci-base: fix host validation function
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/validation.js | 2 |
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')); }, |