Remove pools from faketls

This commit is contained in:
9seconds
2020-08-10 13:21:30 +03:00
parent e286dea650
commit 3996b9a6b8
3 changed files with 3 additions and 46 deletions
+2 -3
View File
@@ -2,6 +2,7 @@ package faketls
import (
"bufio"
"bytes"
"encoding/binary"
"errors"
"fmt"
@@ -63,9 +64,7 @@ func (c *ClientProtocol) tlsHandshake(conn io.ReadWriter) error {
return fmt.Errorf("cannot read initial record: %w", err)
}
buf := acquireBytesBuffer()
defer releaseBytesBuffer(buf)
buf := &bytes.Buffer{}
helloRecord.Data.WriteBytes(buf)
clientHello, err := tlstypes.ParseClientHello(buf.Bytes())