SkyeYoung commented on code in PR #12551: URL: https://github.com/apache/apisix/pull/12551#discussion_r2324526326
########## apisix/init.lua: ########## @@ -599,6 +587,53 @@ function _M.handle_upstream(api_ctx, route, enable_websocket) end +local function handle_x_forwarded_headers(api_ctx) + local addr_is_trusted = trusted_addresses_util.is_trusted(api_ctx.var.realip_remote_addr) + + if not addr_is_trusted then + -- store the original x-forwarded-* headers for later process Review Comment: done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org