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

登录日志中的登录ip,能否显示Nginx反向代理后的 X-Real-IP #364

Open
cyoukon opened this issue Sep 18, 2022 · 1 comment

Comments

@cyoukon
Copy link

cyoukon commented Sep 18, 2022

登录日志中的登录ip,能否显示Nginx反向代理后的 X-Real-IP

@wolf-joe
Copy link

目前是可以的,但log表ip字段长度限制15,ipv6环境下nginx代理后,插入登录日志时可能因为ip地址过长而插入失败。修改了表结构后可以正常显示:

alter table login_log modify column ip varchar(64)

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

2 participants