Update dependencies

This commit is contained in:
世界 committed 2023-04-16 16:28:41 +08:00
1 parent 9df96ac7f1
commit 5c20d0b4d5
6 files changed
+19 -19

No files matched your search

+1 -1
View File
@@ -32,10 +32,10 @@ type TLSObfs struct {
func (to *TLSObfs) read(b []byte, discardN int) (int, error) {
buf := B.Get(discardN)
_, err := io.ReadFull(to.Conn, buf)
B.Put(buf)
if err != nil {
return 0, err
}
B.Put(buf)
sizeBuf := make([]byte, 2)
_, err = io.ReadFull(to.Conn, sizeBuf)