-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat: log X-Real-IP header #631
Conversation
我没复现出来,控制台测试
能记录 |
|
|
对的,没注意看。那是他没获取到版本吧,后面都没打印日志 |
抽一个公共的方法(util包中),能用的地方都可以调用 |
已移动到 |
打印
可以返回一个,而不是多个。如下看到也有点奇怪
|
内网验证保留了RemoteAddr以避免伪造header攻击 |
What does this PR do?
日志中显示nginx发送的RealIP地址
Motivation
#630
Additional Notes