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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user