Browse Source

RAW transport hub.go: Call REALITY's DetectPostHandshakeRecordsLens() in advance

https://github.com/XTLS/Xray-core/issues/4778#issuecomment-2953455751
RPRX 1 year ago
parent
commit
e011b746dc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      transport/internet/tcp/hub.go

+ 1 - 0
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 {