mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
Implements captive portal users auto expiration
This commit is contained in:
parent
92b40eb2d0
commit
f304f9229f
11 changed files with 257 additions and 18 deletions
|
|
@ -125,4 +125,16 @@ function host_pools_utils.getUndeletablePools()
|
|||
return pools
|
||||
end
|
||||
|
||||
function host_pools_utils.purgeExpiredPoolsMembers()
|
||||
local ifnames = interface.getIfNames()
|
||||
|
||||
for _, ifname in pairs(ifnames) do
|
||||
interface.select(ifname)
|
||||
|
||||
if isCaptivePortalActive() then
|
||||
interface.purgeExpiredPoolsMembers()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return host_pools_utils
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue