spacewander commented on issue #4470:
URL: https://github.com/apache/apisix/issues/4470#issuecomment-866697465


   There is some logic to generate "X-Forwarded-For": 
https://github.com/apache/apisix/blob/2707fda3eb7b23d995ac23ecf4a17000dd765855/apisix/cli/ngx_tpl.lua#L545-L546
   
   So the change in proxy-rewrite doesn't take effect.
   
   However, if the client sent its IP via "X-Forwarded-For", it should provide 
the expected result "220.249.., 172.19...".


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to