Merge branch 'topic/jazoff/catch-and-release-perf' of https://github.com/JustinAzoff/zeek

* 'topic/jazoff/catch-and-release-perf' of https://github.com/JustinAzoff/zeek:
  improve performance of catch and release script
This commit is contained in:
Johanna Amann 2019-01-10 08:38:17 -08:00
commit 1cee5d0f9d

View file

@ -428,13 +428,12 @@ function unblock_address_catch_release(a: addr, reason: string &default=""): boo
function catch_release_seen(a: addr)
{
local e = Entity($ty=ADDRESS, $ip=addr_to_subnet(a));
if ( a in blocks )
{
@if ( ! Cluster::is_enabled() || ( Cluster::is_enabled() && Cluster::local_node_type() == Cluster::MANAGER ) )
local bi = blocks[a];
local log: CatchReleaseInfo;
local e = Entity($ty=ADDRESS, $ip=addr_to_subnet(a));
if ( [e,DROP] in rule_entities )
{