mirror of
https://github.com/SagerNet/sing.git
synced 2025-04-04 20:37:40 +03:00
Fix copyPacketWaitWithPool
This commit is contained in:
parent
a23ffbaeb5
commit
ed2d05ab51
2 changed files with 3 additions and 1 deletions
|
@ -71,7 +71,7 @@ func CopyExtended(originDestination io.Writer, destination N.ExtendedWriter, sou
|
|||
return
|
||||
}
|
||||
}
|
||||
if N.IsUnsafeWriter(destination) {
|
||||
if !common.UnsafeBuffer || N.IsUnsafeWriter(destination) {
|
||||
return CopyExtendedWithPool(originDestination, destination, source, readCounters, writeCounters)
|
||||
}
|
||||
bufferSize := N.CalculateMTU(source, destination)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue