luci-base: fix client side "host" datatype validator
Fixes #1413. Reported-by: Wojciech Jowsa <wojciech.jowsa@gmail.com> Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
3e00e13e1f
commit
fbe7f90eed
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ var cbi_validators = {
|
||||||
{
|
{
|
||||||
return cbi_validators.hostname.apply(this) ||
|
return cbi_validators.hostname.apply(this) ||
|
||||||
((ipv4only != 1) && cbi_validators.ipaddr.apply(this)) ||
|
((ipv4only != 1) && cbi_validators.ipaddr.apply(this)) ||
|
||||||
((ipv4only == 1) && cb_validators.ip4addr.apply(this));
|
((ipv4only == 1) && cbi_validators.ip4addr.apply(this));
|
||||||
},
|
},
|
||||||
|
|
||||||
'hostname': function()
|
'hostname': function()
|
||||||
|
|
Loading…
Reference in a new issue