gRPC client: Fix redial with the first request's canceled context (#6877)

https://github.com/XTLS/Xray-core/pull/6877#issuecomment-5986476726

Fixes https://github.com/XTLS/Xray-core/issues/6876

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LevL-max
2026-10-05 01:26:12 +00:00
committed by GitHub
co-authored by Claude Opus 5.5
parent b26a91de4f
commit 9d9a7a1c00
+1 -1
View File
@@ -127,7 +127,7 @@ func getGrpcClient(ctx context.Context, dest net.Destination, streamSettings *in
if streamSettings.FinalMask != nil {
c, err = streamSettings.FinalMask.DialTCP(gctx, net.TCPDestination(address, port))
} else {
c, err = internet.DialSystem(ctx, dest, streamSettings.SocketSettings)
c, err = internet.DialSystem(gctx, net.TCPDestination(address, port), streamSettings.SocketSettings)
}
if err == nil {
if tlsConfig != nil {