Skip to content

Commit efb99d9

Browse files
committed
TUN-6708: Fix replace flow logic
1 parent e131125 commit efb99d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packet/flow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func (sft *FlowTracker) Register(id FlowID, flow *Flow, shouldReplace bool) (rep
6464
return false
6565
}
6666

67-
if shouldReplace && isSameFlow(currentFlow, flow) {
67+
if shouldReplace && !isSameFlow(currentFlow, flow) {
6868
sft.flows[id] = flow
6969
return true
7070
}

0 commit comments

Comments
 (0)