mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 21:18:20 +00:00
Fixed a problem with sending notice emails I introduced earlier.
This commit is contained in:
parent
d96bb4216f
commit
74240610c5
1 changed files with 4 additions and 4 deletions
|
@ -359,11 +359,11 @@ function email_notice_to(n: Notice::Info, dest: string, extend: bool)
|
||||||
|
|
||||||
# Add information about the connection if it exists.
|
# Add information about the connection if it exists.
|
||||||
if ( n?$id )
|
if ( n?$id )
|
||||||
email_text = cat(email_text, "Connection: ",
|
email_text = string_cat(email_text, "Connection: ",
|
||||||
n$id$orig_h, ":", n$id$orig_p, " -> ",
|
fmt("%s", n$id$orig_h), ":", fmt("%d", n$id$orig_p), " -> ",
|
||||||
n$id$resp_h, ":", n$id$resp_p, "\n");
|
fmt("%s", n$id$resp_h), ":", fmt("%d", n$id$resp_p), "\n");
|
||||||
else if ( n?$src )
|
else if ( n?$src )
|
||||||
email_text = cat(email_text, "Address: ", n$src, "\n");
|
email_text = string_cat(email_text, "Address: ", fmt("%s", n$src), "\n");
|
||||||
|
|
||||||
# Add the extended information if it's requested.
|
# Add the extended information if it's requested.
|
||||||
if ( extend )
|
if ( extend )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue