luci-base: fix client side "host" datatype validator
[project/luci.git] / modules / luci-base / htdocs / luci-static / resources / cbi.js
index 884eb62..b334703 100644 (file)
@@ -229,7 +229,7 @@ var cbi_validators = {
        {
                return cbi_validators.hostname.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()