mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fixes #4215
This commit is contained in:
parent
6b62b5ff90
commit
047a29aaf7
4 changed files with 12 additions and 0 deletions
|
|
@ -1800,6 +1800,7 @@ local known_parameters = {
|
|||
["old_dhcp_ranges"] = validateListOfTypeInline(validateIpRange),
|
||||
["icmp_type"] = validateNumber,
|
||||
["icmp_cod"] = validateNumber,
|
||||
["snmp_timeout_sec"] = validateNumber,
|
||||
["hosts_only"] = validateBool,
|
||||
["referal_url"] = validateUnquoted,
|
||||
["disabled_status"] = validateListOfTypeInline(validateNumber),
|
||||
|
|
@ -1884,6 +1885,7 @@ local special_parameters = { --[[Suffix validator]] --[[Value Validator]]
|
|||
|
||||
local function validateParameter(k, v)
|
||||
if(known_parameters[k] == nil) then
|
||||
error("[LINT] Validation error: Unknown key "..k.." [value: "..v.."]: missing validation perhaps?\n")
|
||||
return false, nil
|
||||
else
|
||||
local ret
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue