From 131cb4e2a5dc8927a16be533ef0ddb27b304742e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sun, 26 Jun 2022 08:32:34 +0800 Subject: [PATCH] Minior fix --- shadowaead_2022/encrypted_stream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowaead_2022/encrypted_stream.go b/shadowaead_2022/encrypted_stream.go index 90abf32..59935ff 100644 --- a/shadowaead_2022/encrypted_stream.go +++ b/shadowaead_2022/encrypted_stream.go @@ -32,7 +32,7 @@ func isTLSHandshake(payload []byte) bool { if tlsVersion != tlsVersion10 && tlsVersion != tlsVersion12 { return false } - return true + return readTLSChunkEnd(payload) > 0 } func readTLSChunkEnd(payload []byte) int {