Fix: should close socks udp PacketConn

This commit is contained in:
gVisor bot 2020-01-31 15:03:59 +08:00
parent 9cbe2b8ed2
commit 623b13a1d0

View File

@ -33,6 +33,7 @@ func (c *fakeConn) LocalAddr() net.Addr {
}
func (c *fakeConn) Close() error {
err := c.PacketConn.Close()
pool.BufPool.Put(c.bufRef[:cap(c.bufRef)])
return nil
return err
}