kellyseeme opened a new issue, #9382:
URL: https://github.com/apache/apisix/issues/9382

   ### Description
   
   the route settings :
   `{
       "priority": 0,
       "status": 1,
           "real-ip": {
               "trusted_address": [
                   "10.182.40.32",
                   "10.182.40.32/32"
               ],
               "recursive": true,
               "source": "http_x_forwarded_for"
           }
       },
       "update_time": 1682337201,
       "uri": "/*",
       "id": "2282",
       "create_time": 1682041579,
       "upstream_id": 14810,
       "enable_websocket": true,
       "name": "config"
   }`
   
   test the setting:
   `curl -H "X-forwarded-for:192.168.0.3,10.182.40.32" localhost -I
   HTTP/1.1 200 OK`
   
   check the accesslog:
   `10.182.40.32 -   localhost HEAD / HTTP/1.1 200 0 0.001  curl/7.80.0 
10.123.50.248:80 200 0.001 http://localhost`
   
   the expeted accesslog:
   `192.168.0.3 -   localhost HEAD / HTTP/1.1 200 0 0.001  curl/7.80.0 
10.123.50.248:80 200 0.001 http://localhost`
   
   how to solve this problem?
   
   ### Environment
   
   - APISIX version (run `apisix version`):2.15.1
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


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