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

加固通过x-forwarded-for获取ip的场景逻辑 #5180 #5072 #5487

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

lizongbo
Copy link
Collaborator

加固通过x-forwarded-for获取ip的场景逻辑:
1.增加了对x-forwarded-for中存在多个ip的识别适配
2.针对万一获取到ip为null的场景进行适配
3.优化了拼接ip字符串时候判断ip是否已经存在的逻辑
均有配套单测验证。

mvn validate 验证ok
mvn clean install 无新增出错用例

加固通过x-forwarded-for获取ip的场景逻辑:
1.增加了对x-forwarded-for中存在多个ip的识别适配
2.针对万一获取到ip为null的场景进行适配
3.优化了拼接ip字符串时候判断ip是否已经存在的逻辑
均有配套单测验证。

mvn validate 验证ok
mvn clean install 无新增出错用例
@wenshao wenshao merged commit 6c9ffe6 into alibaba:master Nov 16, 2023
0 of 2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants