mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-10-05 05:18:15 +03:00
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:
co-authored by
Claude Opus 5.5
parent
b26a91de4f
commit
9d9a7a1c00
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user