mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 19:56:51 +08:00
Fix: should close socks udp PacketConn
This commit is contained in:
parent
9cbe2b8ed2
commit
623b13a1d0
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user