mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-14 17:01:20 +08:00
perf(ext-plugin): use a better API to create byte vector (#4195)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
This commit is contained in:
parent
3ebe8004b1
commit
bfd69df8a9
@ -341,12 +341,7 @@ local rpc_handlers = {
|
||||
local path = builder:CreateString(uri)
|
||||
|
||||
local bin_addr = var.binary_remote_addr
|
||||
local len = #bin_addr
|
||||
http_req_call_req.StartSrcIpVector(builder, len)
|
||||
for i = len, 1, -1 do
|
||||
builder:PrependByte(str_byte(bin_addr, i))
|
||||
end
|
||||
local src_ip = builder:EndVector(len)
|
||||
local src_ip = builder.CreateByteVector(builder, bin_addr)
|
||||
|
||||
local args = core.request.get_uri_args(ctx)
|
||||
local textEntries = {}
|
||||
|
Loading…
Reference in New Issue
Block a user