Skip to content

Commit

Permalink
skip reinterpret direction for conversations (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinsonneau authored Jun 8, 2023
1 parent d25d469 commit a05a86d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/pipeline/transform/transform_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ func (n *Network) Transform(inputEntry config.GenericMap) (config.GenericMap, bo
}
}
case api.OpReinterpretDirection:
reinterpretDirection(outputEntry, &n.DirectionInfo)
// only reinterpret direction on flowlogs
if rt, ok := outputEntry["_RecordType"]; !ok || rt == "flowLog" {
reinterpretDirection(outputEntry, &n.DirectionInfo)
}
case api.OpAddIPCategory:
if strIP, ok := outputEntry[rule.Input].(string); ok {
cat, ok := n.ipCatCache.GetCacheEntry(strIP)
Expand Down

0 comments on commit a05a86d

Please sign in to comment.