mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-07-23 10:24:15 +00:00
copy ctx-outbounds to newCtx-outbounds
This commit is contained in:
parent
1cdca10352
commit
adea0161ac
1 changed files with 1 additions and 0 deletions
|
@ -175,6 +175,7 @@ func (h *Handler) Process(ctx context.Context, link *transport.Link, dialer inte
|
|||
var newCancel context.CancelFunc
|
||||
if session.TimeoutOnlyFromContext(ctx) {
|
||||
newCtx, newCancel = context.WithCancel(context.Background())
|
||||
newCtx = session.ContextWithOutbounds(newCtx, session.OutboundsFromContext(ctx))
|
||||
}
|
||||
|
||||
plcy := h.policy()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue