mirror of
https://github.com/go-gost/gost.git
synced 2026-10-09 04:25:45 +00:00
change []byte bufpool to *[]byte
This commit is contained in:
@@ -35,7 +35,7 @@ func (c *Conn) ReadFrom(b []byte) (n int, addr net.Addr, err error) {
|
||||
case bb := <-c.rc:
|
||||
n = copy(b, bb)
|
||||
c.SetIdle(false)
|
||||
bufpool.Put(bb)
|
||||
bufpool.Put(&bb)
|
||||
|
||||
case <-c.closed:
|
||||
err = net.ErrClosed
|
||||
|
||||
Reference in New Issue
Block a user