mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-07-23 18:34:14 +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
|
var newCancel context.CancelFunc
|
||||||
if session.TimeoutOnlyFromContext(ctx) {
|
if session.TimeoutOnlyFromContext(ctx) {
|
||||||
newCtx, newCancel = context.WithCancel(context.Background())
|
newCtx, newCancel = context.WithCancel(context.Background())
|
||||||
|
newCtx = session.ContextWithOutbounds(newCtx, session.OutboundsFromContext(ctx))
|
||||||
}
|
}
|
||||||
|
|
||||||
plcy := h.policy()
|
plcy := h.policy()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue