Revert "remove IndependentCancelCtx"

This reverts commit b53f8b56a4.
This commit is contained in:
Meo597
2026-07-08 22:44:21 +08:00
parent 95c960977b
commit dc7ae49fab
+3
View File
@@ -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