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

考虑支持自定义从 HTTP Header 中获取真实IP吗? #144

Open
molikaiwork opened this issue Feb 10, 2025 · 0 comments
Open

考虑支持自定义从 HTTP Header 中获取真实IP吗? #144

molikaiwork opened this issue Feb 10, 2025 · 0 comments

Comments

@molikaiwork
Copy link

或许使用了CDN服务,也或许因为某些请求头不可靠,请问能支持自定义服务器获取客户端ip的请求头吗?

程序现在似乎是从 X-Forwarded-For 头中获取的ip,但其实不太可靠,
还有使用了 CDN 的情况下可以使用 CDN 提供的头,例如 CF-Connecting-IPAli-Cdn-Real-Ip 等等。

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

No branches or pull requests

1 participant