From 0beacd78564a2592fe7e7580d594c1edda137ada Mon Sep 17 00:00:00 2001 From: Meo597 <197331664+Meo597@users.noreply.github.com> Date: Sat, 25 Jul 2026 21:20:35 +0800 Subject: [PATCH] removed redundant newCtx --- app/proxyman/outbound/handler.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/proxyman/outbound/handler.go b/app/proxyman/outbound/handler.go index 29d7af7b2..b25fbecc4 100644 --- a/app/proxyman/outbound/handler.go +++ b/app/proxyman/outbound/handler.go @@ -103,12 +103,11 @@ func NewHandler(ctx context.Context, config *core.OutboundHandlerConfig) (outbou ctx = session.ContextWithFullHandler(ctx, h) - newCtx := ctx if h.streamSettings != nil { - newCtx = session.ContextWithStreamSettings(newCtx, h.streamSettings) + ctx = session.ContextWithStreamSettings(ctx, h.streamSettings) } - rawProxyHandler, err := common.CreateObject(newCtx, proxyConfig) + rawProxyHandler, err := common.CreateObject(ctx, proxyConfig) if err != nil { return nil, err }