Просмотр исходного кода

Fix XTLS Vision incomplete TLS record handling - correct RemainingServerHello calculation

Co-authored-by: RPRX <[email protected]>
copilot-swe-agent[bot] 5 месяцев назад
Родитель
Сommit
0a7aeb7cda
2 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      proxy/proxy.go
  2. BIN
      xray_temp

+ 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 -= b.Len()
+			trafficState.RemainingServerHello -= end
 			if bytes.Contains(b.BytesTo(end), Tls13SupportedVersions) {
 				v, ok := Tls13CipherSuiteDic[trafficState.Cipher]
 				if !ok {