Fix hanging issue for some randomized fingerprints

This commit is contained in:
yuhan6665
2025-06-15 00:30:40 -04:00
parent 0d942695e3
commit f13edcc98b
2 changed files with 41 additions and 25 deletions
+3
View File
@@ -375,6 +375,9 @@ func Server(ctx context.Context, conn net.Conn, config *Config) (*Conn, error) {
break
}
for _, length := range postHandshakeRecordsLens[hs.clientHello.serverName] {
if length == 0 {
break;
}
plainText := make([]byte, length-16)
plainText[0] = 23
plainText[1] = 3