mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
Fix (non)suppression of proxy-bound events in known-*.bro scripts
When not using data stores, these scripts were intended to suppress sending duplicate events to proxies by looking up the key in the local cache.
This commit is contained in:
parent
29359ffff2
commit
e6042940dc
3 changed files with 11 additions and 0 deletions
|
@ -138,6 +138,9 @@ event Known::host_found(info: HostsInfo)
|
|||
if ( use_host_store )
|
||||
return;
|
||||
|
||||
if ( info$host in Known::hosts )
|
||||
return;
|
||||
|
||||
Cluster::publish_hrw(Cluster::proxy_pool, info$host, known_host_add, info);
|
||||
event known_host_add(info);
|
||||
}
|
||||
|
|
|
@ -159,6 +159,9 @@ event service_info_commit(info: ServicesInfo)
|
|||
if ( Known::use_service_store )
|
||||
return;
|
||||
|
||||
if ( [info$host, info$port_num] in Known::services )
|
||||
return;
|
||||
|
||||
local key = cat(info$host, info$port_num);
|
||||
Cluster::publish_hrw(Cluster::proxy_pool, key, known_service_add, info);
|
||||
event known_service_add(info);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue