From 0a03261e7922fa5e8ae7c0902b2d1c03aabddb19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sat, 14 Nov 2026 07:52:37 +0000 Subject: [PATCH] Send reality client version 1.8.2 Xray-core v26.7.11 to v26.9.7 refused REALITY clients older than 26.3.27 unless the server set minClientVer, and operators set it to 1.8.2, the version mihomo sends, to let third-party clients connect. The setting stays after Xray-core dropped that default, and it rejects sing-box, which sends 1.8.1. The version is only checked against the server's minClientVer and maxClientVer, and Xray-core never released a 1.8.2, so send the same version as mihomo. --- common/tls/reality_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/tls/reality_client.go b/common/tls/reality_client.go index 84cbf0f4..815cf2cf 100644 --- a/common/tls/reality_client.go +++ b/common/tls/reality_client.go @@ -160,7 +160,7 @@ func (e *RealityClientConfig) ClientHandshake(ctx context.Context, conn net.Conn hello.SessionId[0] = 1 hello.SessionId[1] = 8 - hello.SessionId[2] = 1 + hello.SessionId[2] = 2 binary.BigEndian.PutUint32(hello.SessionId[4:], uint32(time.Now().Unix())) copy(hello.SessionId[8:], e.shortID[:]) if debug.Enabled {