mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 02:16:39 +00:00
Exposes http_lint methods to the outside
This commit is contained in:
parent
4b27804166
commit
7979468f5b
1 changed files with 3 additions and 0 deletions
|
|
@ -587,6 +587,7 @@ local function validateIpAddress(p)
|
|||
return false
|
||||
end
|
||||
end
|
||||
http_lint.validateIpAddress = validateIpAddress
|
||||
|
||||
local function validateIpRange(p)
|
||||
local range = string.split(p, "%-")
|
||||
|
|
@ -788,6 +789,7 @@ local function validateHost(p)
|
|||
return validateNetwork(p)
|
||||
end
|
||||
end
|
||||
http_lint.validateHost = validateHost
|
||||
|
||||
local function validateNetworkWithVLAN(i)
|
||||
if not string.find(i, "/") then
|
||||
|
|
@ -1021,6 +1023,7 @@ end
|
|||
local function validateSNMPversion(m)
|
||||
return validateChoice({"0", "1"}, m)
|
||||
end
|
||||
http_lint.validateSNMPversion = validateSNMPversion
|
||||
|
||||
-- #################################################################
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue