Top-mkx commented on issue #9168:
URL: https://github.com/apache/apisix/issues/9168#issuecomment-1983045651

   > > 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请查看trusted_addresses和递归配置。您需要将10.182.40.33设置为可信地址,这样real-ip插件会继续向前搜索,这与ngx_http_realip_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"例如:“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请查看trusted_addresses和递归配置。您需要将10.182.40.33设置为可信地址,这样real-ip插件会继续向前搜索,这与ngx_http_realip_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"例如:“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