Open Sarkie opened 4 months ago
When using http_x_forwarded_for in the logs, the order doesn't look to be right and also there's an issue with the comma+space aspect. Unsure if this is an Nginx bug or an apisix bug
When using http_x_forwarded_for you will get https://en.wikipedia.org/wiki/X-Forwarded-For
"where the value is a comma+space separated list of IP addresses,"
X-Forwarded-For: client, proxy1, proxy2
No response
apisix version
uname -a
openresty -V
nginx -V
Could you please make sure the bug is on Apache APISIX side by checking if you reproduce the bug on nginx, please?
Current Behavior
When using http_x_forwarded_for in the logs, the order doesn't look to be right and also there's an issue with the comma+space aspect. Unsure if this is an Nginx bug or an apisix bug
Expected Behavior
When using http_x_forwarded_for you will get https://en.wikipedia.org/wiki/X-Forwarded-For
"where the value is a comma+space separated list of IP addresses,"
X-Forwarded-For: client, proxy1, proxy2
Error Logs
No response
Steps to Reproduce
Environment
apisix version
):3.8.0uname -a
): Oracle Linux 8openresty -V
ornginx -V
): (Unsure, will get it, asap)