copy ctx-outbounds to newCtx-outbounds

This commit is contained in:
patterniha 2025-07-16 10:00:38 +03:30
parent 1cdca10352
commit adea0161ac

View file

@ -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()