mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-17 22:57:10 +00:00
Clear buffer for UDP response.
This commit is contained in:
1 parent
702aaacac3
commit
95b44f2160
1 file changed
+1
-1
@@ -195,7 +195,7 @@ func (server *SocksServer) handleUDP(reader *v2net.TimeOutReader, writer io.Writ
|
||||
response.Domain = udpAddr.Domain()
|
||||
}
|
||||
|
||||
responseBuffer := alloc.NewSmallBuffer()
|
||||
responseBuffer := alloc.NewSmallBuffer().Clear()
|
||||
response.Write(responseBuffer)
|
||||
_, err := writer.Write(responseBuffer.Value)
|
||||
responseBuffer.Release()
|
||||
|
||||
Reference in new issue
Block a user