1
0
mirror of https://github.com/fumiama/terasu-cloudflared.git synced 2026-06-05 00:50:24 +08:00

TUN-6708: Fix replace flow logic

This commit is contained in:
cthuang
2022-08-26 17:52:06 +01:00
parent e131125558
commit efb99d90d7

View File

@@ -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
}