diff --git a/proxy/proxy.go b/proxy/proxy.go index 29548d9f..cc9bcc00 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 -= b.Len() + trafficState.RemainingServerHello -= end if bytes.Contains(b.BytesTo(end), Tls13SupportedVersions) { v, ok := Tls13CipherSuiteDic[trafficState.Cipher] if !ok { diff --git a/xray_temp b/xray_temp new file mode 100755 index 00000000..2e6ba001 Binary files /dev/null and b/xray_temp differ