mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Added nedge blacklist reload check to drop live flows if ip is blacklisted (#9467)
This commit is contained in:
parent
f98ea6772a
commit
c2571f9e92
1 changed files with 6 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ local auth = require "auth"
|
|||
-- Hot reload enabled blacklists in ntopng
|
||||
-- Example: curl -X POST -u admin:admin http://localhost:3000/lua/rest/v2/blacklist/reload.lua
|
||||
--
|
||||
local is_nedge = ntop.isnEdge()
|
||||
|
||||
local rc = rest_utils.consts.success.ok
|
||||
local result = {}
|
||||
|
|
@ -50,6 +51,11 @@ if success then
|
|||
end
|
||||
end
|
||||
|
||||
-- to drop active flows in nedge after reloading the blacklists
|
||||
if is_nedge then
|
||||
interface.updateFlowsShapers()
|
||||
end
|
||||
|
||||
result.success = success
|
||||
|
||||
if not success then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue