mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +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 )
|
if ( ! n?$src && ! n?$dst )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
# This should only be done for notices that are being sent to email.
|
||||||
|
if ( ACTION_EMAIL !in n$action )
|
||||||
|
return;
|
||||||
|
|
||||||
local output = "";
|
local output = "";
|
||||||
if ( n?$src )
|
if ( n?$src )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue