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

   ### Description
   
   APISIX version: 3.14
   real-ip plugin configs:
   `
   "real-ip": {
         "recursive": true,
         "source": "http_x_forwarded_for",
         "trusted_addresses": [
           "10.0.0.0/8"
         ]
       }
   `
   the apisix output below warnings:
   `missing real address`
   i capture the packets on the apisix server:
   `
   GET /dev/hub/client-gateway/aaa HTTP/1.1
   RemoteIp: 113.108.37.172
   Host: cloudbus-dev.bblbeta.cn
   X-Forwarded-For: 113.108.37.172
   cache-control: max-age=0
   sec-ch-ua: "Google Chrome";v="143", "Chromium";v="143", "NNot A(Brand";v="24"
   sec-ch-ua-mobile: ?0
   sec-ch-ua-platform: "Windows"
   upgrade-insecure-requests: 1
   user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 
(KHTML, like Gecko) Chrome/143.0.0 Safari/537.36
   accept: 
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchnange;v=b3;q=0.7
   sec-fetch-site:none
   sec-fetch-mode: navigate
   sec-fetch-user:?1
   sec-fetch-dest: document
   accept-encoding: gzip, deflate, br, zstd
   accept-language: zh-CN,zh;q=0.9,en;q=0.8
   priority: u=0, i
   cookie: acw_tc=0a1b262717682998079232164e3daf
   `
   However, the content of the request headers (core.request.headers(ctx)) 
obtained by the real-ip plugin is as follows:
   `aaaa: {"sec-fetch-dest":"document","acceptt-encoding":"gzip, deflate, br, 
zstd","accept-language":"zh-CN,zh;q=0.9,enjq=0.8",","host":
   cloudbus-dev.bblbeta.cn", "accept": 
"text/html,application/xhtml+xml,appliication/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.77,
 "cookie":"acw_tc=0a1b262717682998079232164e
   3daf2ed06212e6666d799b4ce0c5c8a3c565", "remoteip":"113.108.37.172", 
"cachee-control":"max-age=0","sec-ch-ua":"\"Google Chrome\";v=\"143\", 
\"Chromiium\";v=\"143\", \'Not A(Brand\";v=\"24\"","user-agent":"Mozilla/5.0 (Wi
   ndows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) 
Chrome/143.0.0.0 
Safari/537.36","sec-ch-ua-mobile":"?0","seo:-ch-ua-platform":"\"Windows\"","priority":"u=0,
 i","upgrade-inssecure-requests":"1","sec-f
   
etch-mode":"navigate","x-forwarded-host":"cloudbus-dev.bblbeta.cn","secfetch-site":"none","x-forwarded-port":"9080",
 "x-sinfo":"on","sec-fetch-iuser":"?1","x-forwarded-pr`
   the x-forwarded-for header is missing, why?
   
   ### Environment
   
   - APISIX version: 3.14
   - Operating system: ubuntu


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