Merge remote-tracking branch 'origin/dev_new' into dev_new

This commit is contained in:
Yuzuki616 2023-10-17 18:25:31 +08:00
commit 69e0ca6648

View File

@ -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
}