优化稳定性

This commit is contained in:
yisier
2026-06-05 15:56:38 -06:00
parent 6750103337
commit 2733d99cf7
14 changed files with 325 additions and 152 deletions
+1 -1
View File
@@ -345,7 +345,7 @@ func GetServerNameFromClientHello(c net.Conn) (string, []byte) {
return "", header
}
recordLen := int(header[3])<<8 | int(header[4])
if recordLen <= 0 {
if recordLen <= 0 || recordLen > 16384 {
return "", header
}