Browse Source

Simplify code

V2Ray 10 năm trước cách đây
mục cha
commit
083b1d4736
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      proxy/vmess/vmessin.go

+ 1 - 2
proxy/vmess/vmessin.go

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