used the source port of the earliest event

Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
This commit is contained in:
Dmitri Dolguikh
2026-06-16 17:16:27 +02:00
parent 1721a4ff7d
commit 5dc159e06a

View File

@@ -134,6 +134,7 @@ func (am *AggregatingMemory) GetAggregatedEvents() []*types.Event {
if aggregatedEvent.Timestamp.Compare(v.Timestamp) > 0 {
aggregatedEvent.Timestamp = v.Timestamp
aggregatedEvent.ID = v.ID
aggregatedEvent.SourcePort = v.SourcePort
}
}