From adea0161ace632cf4c99748c2abe35eb4fe13c74 Mon Sep 17 00:00:00 2001 From: patterniha <71074308+patterniha@users.noreply.github.com> Date: Wed, 16 Jul 2025 10:00:38 +0330 Subject: [PATCH] copy ctx-outbounds to newCtx-outbounds --- proxy/freedom/freedom.go | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy/freedom/freedom.go b/proxy/freedom/freedom.go index a519a8e0..43fa8218 100644 --- a/proxy/freedom/freedom.go +++ b/proxy/freedom/freedom.go @@ -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()