mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 09:58:14 -05:00
fix infinite recursive call
This commit is contained in:
parent
36bb5bd205
commit
bd52013e31
@ -45,7 +45,7 @@ func NewPacketConnCounter(conn network.PacketConn, l *ratelimit.Bucket) network.
|
||||
|
||||
func (p *PacketConnCounter) ReadPacket(buff *buf.Buffer) (destination M.Socksaddr, err error) {
|
||||
pLen := buff.Len()
|
||||
destination, err = p.ReadPacket(buff)
|
||||
destination, err = p.PacketConn.ReadPacket(buff)
|
||||
p.limiter.Wait(int64(buff.Len() - pLen))
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user