mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-12-01 14:18:36 +00:00
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.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user