mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
GH-1589: Avoid extracting IP-like strings from SMTP headers
This commit is contained in:
parent
f8e87d3814
commit
569552b320
5 changed files with 43 additions and 4 deletions
|
@ -109,7 +109,7 @@ event zeek_init() &priority=5
|
|||
|
||||
function find_address_in_smtp_header(header: string): string
|
||||
{
|
||||
local ips = extract_ip_addresses(header);
|
||||
local ips = extract_ip_addresses(header, T);
|
||||
# If there are more than one IP address found, return the second.
|
||||
if ( |ips| > 1 )
|
||||
return ips[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue