lighttpd 中的 X-Forwarded-For 字段使用 ::ffff:192.168.1.45 IP 格式

发布于 2025-01-14 04:51:36 字数 290 浏览 1 评论 0原文

在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文