From efb99d90d7cd02bc11d34767be114fec37382973 Mon Sep 17 00:00:00 2001 From: cthuang Date: Fri, 26 Aug 2022 17:52:06 +0100 Subject: [PATCH] TUN-6708: Fix replace flow logic --- packet/flow.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }