mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Set c$conn (for logging) in new_connection() event.
c$conn was originally set in connection_established(), which is only used by TCP connections, and in connection_state_remove(). Using new_connection() allows us to have c$conn available for any connection and for any script that wants to extend logging to conn.log.
This commit is contained in:
parent
eacfbea3fe
commit
95d84da1b0
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ function set_conn(c: connection, eoc: bool)
|
|||
}
|
||||
}
|
||||
|
||||
event connection_established(c: connection) &priority=5
|
||||
event new_connection(c: connection) &priority=5
|
||||
{
|
||||
set_conn(c, F);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue