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 }