|
@@ -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 -= end
|
|
|
|
|
|
|
+ trafficState.RemainingServerHello -= b.Len()
|
|
|
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 {
|