Преглед изворни кода

Revert incorrect fix - restore original RemainingServerHello logic

Co-authored-by: RPRX <[email protected]>
copilot-swe-agent[bot] пре 5 месеци
родитељ
комит
ca12c4d909
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      proxy/proxy.go

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