From ca12c4d9095cb2a27ff0f32c080844905fd996f3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 10 Jan 2026 22:43:48 +0000 Subject: [PATCH] Revert incorrect fix - restore original RemainingServerHello logic Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com> --- proxy/proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/proxy.go b/proxy/proxy.go index cc9bcc00..29548d9f 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -635,7 +635,7 @@ func XtlsFilterTls(buffer buf.MultiBuffer, trafficState *TrafficState, ctx conte if end > b.Len() { end = b.Len() } - trafficState.RemainingServerHello -= end + trafficState.RemainingServerHello -= b.Len() if bytes.Contains(b.BytesTo(end), Tls13SupportedVersions) { v, ok := Tls13CipherSuiteDic[trafficState.Cipher] if !ok {