mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-05-12 20:56:34 +00:00
TUN-6708: Fix replace flow logic
This commit is contained in:
parent
e131125558
commit
efb99d90d7
@ -64,7 +64,7 @@ func (sft *FlowTracker) Register(id FlowID, flow *Flow, shouldReplace bool) (rep
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if shouldReplace && isSameFlow(currentFlow, flow) {
|
if shouldReplace && !isSameFlow(currentFlow, flow) {
|
||||||
sft.flows[id] = flow
|
sft.flows[id] = flow
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user