Improve VLESS request

This commit is contained in:
世界
2023-04-18 14:59:44 +08:00
parent 59faaf8f63
commit 385a561b2d
7 changed files with 354 additions and 161 deletions

View File

@@ -135,7 +135,7 @@ func (e *RealityClientConfig) ClientHandshake(ctx context.Context, conn net.Conn
hello.SessionId[0] = 1
hello.SessionId[1] = 8
hello.SessionId[2] = 0
hello.SessionId[2] = 1
binary.BigEndian.PutUint32(hello.SessionId[4:], uint32(time.Now().Unix()))
copy(hello.SessionId[8:], e.shortID[:])