lighttpd 中的 X-Forwarded-For 字段使用 ::ffff:192.168.1.45 IP 格式
在 lighttpd 版本 1.4.40 中,我可以看到 X-Forwarded-For 字段被设置为 ::ffff:192.168.1.45
在较旧的 lighttpd 版本 1.4.35 中,它曾经只是 192.168.1.45
有没有办法让lighttpd 1.4.40使用X-Forwarded-For作为192.168.1.45 而不是 ::ffff:192.168.1.45 ?
我了解 ::ffff 存在的原因,但我想看看我的应用程序是否因为这个额外的 ::ffff 而行为异常。因此删除它并进行测试会很有用。
With lighttpd version 1.4.40, I can see that the X-Forwarded-For field is being set to ::ffff:192.168.1.45
With older lighttpd version 1.4.35, It used to be just 192.168.1.45
Is there a way to get lighttpd 1.4.40 to use X-Forwarded-For as 192.168.1.45 instead of ::ffff:192.168.1.45 ?
I understand the reasons why the ::ffff is present, but I want to see if my application is misbehaving because of this extra ::ffff. So it would be useful to remove this and test.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论