You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks.
The pull request #296 rejected because UNIX domain communications were given special treatment.
In modern proxy/cloud services, the behavior of “merging into a single header” is recognized as being relatively standardized.
Please tell me under what circumstances multiple X-Forwarded-For headers occur. HTTPS?
It has a set_real_ip_from parameter, which could be set to unix: to specify that the server should trust the proxy communicating via a Unix domain socket.
I realize that most proxy servers join X-Forwarder-For headers into one. However, for security reasons, it is recommended not to rely on this:
Activity
treefrogframework commentedon Oct 23, 2025
Thanks.
The pull request #296 rejected because UNIX domain communications were given special treatment.
In modern proxy/cloud services, the behavior of “merging into a single header” is recognized as being relatively standardized.
Please tell me under what circumstances multiple X-Forwarded-For headers occur. HTTPS?
amiart commentedon Oct 23, 2025
Thank you for reply.
When I wrote #296, I based it on the ngx_http_realip_module:
https://nginx.org/en/docs/http/ngx_http_realip_module.html
It has a
set_real_ip_fromparameter, which could be set tounix:to specify that the server should trust the proxy communicating via a Unix domain socket.I realize that most proxy servers join X-Forwarder-For headers into one. However, for security reasons, it is recommended not to rely on this:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Forwarded-For#parsing