Revert incorrect fix - restore original RemainingServerHello logic

Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-10 22:43:48 +00:00
parent c6cc048e05
commit ca12c4d909

View File

@@ -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 {