mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Add CIDR. (#7625)
This commit is contained in:
parent
cef5d72b8d
commit
ec5d112ab5
4 changed files with 62 additions and 3 deletions
|
|
@ -386,4 +386,21 @@ end
|
|||
|
||||
-- **********************************************************
|
||||
|
||||
function vs_utils.get_active_hosts(host, cidr)
|
||||
|
||||
local result = {}
|
||||
|
||||
for i in range(1, 2 --[[ instead of cidr just for example --]], 1) do
|
||||
|
||||
-- FIX ME
|
||||
host = host:sub(1, -2)
|
||||
host = host .. i
|
||||
result[#result+1] = host
|
||||
end
|
||||
|
||||
return result
|
||||
end
|
||||
|
||||
-- **********************************************************
|
||||
|
||||
return vs_utils
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue