From dc7ae49fab28753b9843cc58d0a594f1b95ce983 Mon Sep 17 00:00:00 2001 From: Meo597 <197331664+Meo597@users.noreply.github.com> Date: Wed, 8 Jul 2026 22:44:21 +0800 Subject: [PATCH] Revert "remove IndependentCancelCtx" This reverts commit b53f8b56a47258773f70267b7e2f4bd1962dde5b. --- common/session/context.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/session/context.go b/common/session/context.go index df445ab55..abe4219ca 100644 --- a/common/session/context.go +++ b/common/session/context.go @@ -10,6 +10,9 @@ import ( "github.com/xtls/xray-core/features/routing" ) +//go:linkname IndependentCancelCtx context.newCancelCtx +func IndependentCancelCtx(parent context.Context) context.Context + const ( inboundSessionKey ctx.SessionKey = 1 outboundSessionKey ctx.SessionKey = 2