Fix XTLS Vision incomplete TLS record handling - correct RemainingServerHello calculation

Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-10 22:25:06 +00:00
parent 249cb9facd
commit 0a7aeb7cda
2 changed files with 1 additions and 1 deletions

View File

@@ -635,7 +635,7 @@ func XtlsFilterTls(buffer buf.MultiBuffer, trafficState *TrafficState, ctx conte
if end > b.Len() {
end = b.Len()
}
trafficState.RemainingServerHello -= b.Len()
trafficState.RemainingServerHello -= end
if bytes.Contains(b.BytesTo(end), Tls13SupportedVersions) {
v, ok := Tls13CipherSuiteDic[trafficState.Cipher]
if !ok {

BIN
xray_temp Executable file

Binary file not shown.