ipanocloud commented on issue #9168:
URL: https://github.com/apache/apisix/issues/9168#issuecomment-1484760429

   > Please have a look at trusted_addresses and recursive configuration. You 
need to set 10.182.40.33 as the trusted address, so that the real-ip plugin 
will continue to search forward, which is consistent with the logic of the 
ngx_http_realip_module module. 
http://nginx.org/en/docs/http/ngx_http_realip_module.html
   
   for example:  "x-forwarded-for":"101.37.117.213, 120.27.173.47, 10.182.40.32"
   except for the first one, Each one is added to the trust list ?  Why not 
take the first one.
   
   > Please have a look at trusted_addresses and recursive configuration. You 
need to set 10.182.40.33 as the trusted address, so that the real-ip plugin 
will continue to search forward, which is consistent with the logic of the 
ngx_http_realip_module module. 
http://nginx.org/en/docs/http/ngx_http_realip_module.html
   
   for example:  "x-forwarded-for":"101.37.117.213, 120.27.173.47, 10.182.40.32"
   except for the first one, Each one is added to the trust list ?  Why not 
take the first one.


-- 
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: [email protected]

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

Reply via email to