Added nedge blacklist reload check to drop live flows if ip is blacklisted (#9467)

This commit is contained in:
GabrieleDeri 2025-08-01 11:21:06 +02:00 committed by GitHub
parent f98ea6772a
commit c2571f9e92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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