Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] WAF无法获取真实IP #4988

Open
R0A1NG opened this issue May 12, 2024 · 1 comment
Open

[FEATURE] WAF无法获取真实IP #4988

R0A1NG opened this issue May 12, 2024 · 1 comment
Assignees

Comments

@R0A1NG
Copy link

R0A1NG commented May 12, 2024

1Panel 版本

v1.10.7

请描述您的需求或者改进建议

cdn传来的真实IP在X-Forwarded-For中,而值是这种1.1.1.1, x.x.x.x, 127.0.0.1

有真实IP在倒数第二个或倒数第三个的情况。
现在没法获取到真实IP,而是只获取了第一个IP作为真实IP

真实IP只在X-Forwarded-For字段中,所以只能指定X-Forwarded-For

需要能获取X-Forwarded-For指定位置的IP
例如:获取X-Forwarded-For倒数第一个IP
获取X-Forwarded-For倒数第二个IP
··················

请描述你建议的实现方案

No response

附加信息

No response

@zhengkunwang223
Copy link
Collaborator

感谢建议,后续版本支持

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants