You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Config send_ip_to_backend_custom_headers set some value, but function header_append_ip refer other setting custom_headers
Should local v = custom_headers[i]
change to local v = send_ip_to_backend_custom_headers[i]?
Source Code:
local function header_append_ip()
local custom_headers_length = #send_ip_to_backend_custom_headers
for i=1,custom_headers_length do --for each host in our table
local v = custom_headers[i]
if string.match(URL, v[1]) then --if our host matches one in the table
local table_length = #v[2]
for first=1,table_length do --for each arg in our table
local value1 = v[2][first][1]
if value1 ~= nil then
ngx.req.set_header(value1, remote_addr)
end
end
end
end
end
Config send_ip_to_backend_custom_headers set some value, but function header_append_ip refer other setting custom_headers
Should
local v = custom_headers[i]
change to
local v = send_ip_to_backend_custom_headers[i]
?Source Code:
Configuration:
The text was updated successfully, but these errors were encountered: