Simplify code

This commit is contained in:
V2Ray
2015-10-10 16:50:19 +02:00
parent 213aa2ecf0
commit 083b1d4736
+1 -2
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 {