1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-02-02 06:15:24 -05:00

Simplify code

This commit is contained in:
V2Ray
2015-10-10 16:50:19 +02:00
parent 213aa2ecf0
commit 083b1d4736

View File

@@ -93,8 +93,7 @@ func (handler *VMessInboundHandler) HandleConnection(connection *net.TCPConn) er
}
// Optimize for small response packet
buffer := alloc.NewLargeBuffer()
buffer.Clear()
buffer := alloc.NewLargeBuffer().Clear()
buffer.Append(request.ResponseHeader)
if data, open := <-output; open {