mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
The hostname notice email extension now only add hostnames for emailed noticed.
This commit is contained in:
parent
cdfaff7fab
commit
048369fbeb
1 changed files with 4 additions and 0 deletions
|
@ -7,6 +7,10 @@ event Notice::notice(n: Notice::Info) &priority=10
|
|||
if ( ! n?$src && ! n?$dst )
|
||||
return;
|
||||
|
||||
# This should only be done for notices that are being sent to email.
|
||||
if ( ACTION_EMAIL !in n$action )
|
||||
return;
|
||||
|
||||
local output = "";
|
||||
if ( n?$src )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue