mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
1 parent
e7b12e36a9
commit
38b34030bc
11 files changed
+13
-36
No files matched your search
+1
-4
@@ -104,10 +104,7 @@ func (c *TLSObfsConn) Read(b []byte) (int, error) {
|
||||
c.leftBytes = int(binary.BigEndian.Uint16(c.buf[:lenSize]))
|
||||
}
|
||||
|
||||
readLen := len(b)
|
||||
if readLen > c.leftBytes {
|
||||
readLen = c.leftBytes
|
||||
}
|
||||
readLen := min(len(b), c.leftBytes)
|
||||
|
||||
m, err := c.reader.Read(b[:readLen])
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user