From e011b746dc8959df61996a7422b4dece965151c3 Mon Sep 17 00:00:00 2001 From: RPRX <63339210+RPRX@users.noreply.github.com> Date: Sun, 8 Jun 2025 05:01:31 +0000 Subject: [PATCH] RAW transport hub.go: Call REALITY's DetectPostHandshakeRecordsLens() in advance https://github.com/XTLS/Xray-core/issues/4778#issuecomment-2953455751 --- transport/internet/tcp/hub.go | 1 + 1 file changed, 1 insertion(+) diff --git a/transport/internet/tcp/hub.go b/transport/internet/tcp/hub.go index 84e39163..8747fca2 100644 --- a/transport/internet/tcp/hub.go +++ b/transport/internet/tcp/hub.go @@ -72,6 +72,7 @@ func ListenTCP(ctx context.Context, address net.Address, port net.Port, streamSe } if config := reality.ConfigFromStreamSettings(streamSettings); config != nil { l.realityConfig = config.GetREALITYConfig() + go goreality.DetectPostHandshakeRecordsLens(l.realityConfig) } if tcpSettings.HeaderSettings != nil {