mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Merge remote-tracking branch 'origin/topic/vladg/ssh'
* origin/topic/vladg/ssh: Fix tiny typo in NEWS. Fix SSH direction field being unset (addresses BIT-1365) BIT-1365 #merged
This commit is contained in:
commit
a7782b90b2
4 changed files with 11 additions and 2 deletions
|
@ -93,6 +93,10 @@ function set_session(c: connection)
|
|||
info$ts = network_time();
|
||||
info$uid = c$uid;
|
||||
info$id = c$id;
|
||||
|
||||
# If both hosts are local or non-local, we can't reliably set a direction.
|
||||
if ( Site::is_local_addr(c$id$orig_h) != Site::is_local_addr(c$id$resp_h) )
|
||||
info$direction = Site::is_local_addr(c$id$orig_h) ? OUTBOUND: INBOUND;
|
||||
c$ssh = info;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue