diff --git a/packet/flow.go b/packet/flow.go index 3eea5652..2b82e562 100644 --- a/packet/flow.go +++ b/packet/flow.go @@ -64,7 +64,7 @@ func (sft *FlowTracker) Register(id FlowID, flow *Flow, shouldReplace bool) (rep return false } - if shouldReplace && isSameFlow(currentFlow, flow) { + if shouldReplace && !isSameFlow(currentFlow, flow) { sft.flows[id] = flow return true }