From 5b52a03d4fb735ca74a54ba504c66c4023ae3990 Mon Sep 17 00:00:00 2001 From: RPRX <63339210+RPRX@users.noreply.github.com> Date: Fri, 25 Jul 2025 14:20:56 +0000 Subject: [PATCH] Fix sending Server Hello in an unexpected way for fixing edge cases https://t.me/projectXray/4377580 --- handshake_server_tls13.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/handshake_server_tls13.go b/handshake_server_tls13.go index cae3317..5595662 100644 --- a/handshake_server_tls13.go +++ b/handshake_server_tls13.go @@ -846,8 +846,16 @@ func (hs *serverHandshakeStateTLS13) sendServerParameters() error { return err } - if _, err := hs.c.writeHandshakeRecord(hs.hello, hs.transcript); err != nil { - return err + /* + if _, err := hs.c.writeHandshakeRecord(hs.hello, hs.transcript); err != nil { + return err + } + */ + { + hs.transcript.Write(hs.hello.original) + if _, err := hs.c.writeRecord(recordTypeHandshake, hs.hello.original); err != nil { + return err + } } if err := hs.sendDummyChangeCipherSpec(); err != nil {