mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-07-02 17:58:46 +00:00
Fix XTLS Vision incomplete TLS record handling - correct RemainingServerHello calculation
Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -635,7 +635,7 @@ func XtlsFilterTls(buffer buf.MultiBuffer, trafficState *TrafficState, ctx conte
|
|||||||
if end > b.Len() {
|
if end > b.Len() {
|
||||||
end = b.Len()
|
end = b.Len()
|
||||||
}
|
}
|
||||||
trafficState.RemainingServerHello -= b.Len()
|
trafficState.RemainingServerHello -= end
|
||||||
if bytes.Contains(b.BytesTo(end), Tls13SupportedVersions) {
|
if bytes.Contains(b.BytesTo(end), Tls13SupportedVersions) {
|
||||||
v, ok := Tls13CipherSuiteDic[trafficState.Cipher]
|
v, ok := Tls13CipherSuiteDic[trafficState.Cipher]
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
Reference in New Issue
Block a user