Skip to content

Commit

Permalink
代码优化.解决映射域名访问因ipv6报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
aoshiguchen committed Dec 21, 2023
1 parent b5d30e2 commit 744335b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static String getRealRemoteIp(String httpContent) {
if (StringUtils.isEmpty(ip)) {
ip = HttpUtil.getHeaderValue(httpContent, "X-Real-IP");
}
if (StringUtils.isNotEmpty(ip) && !Ipv4Util.isInnerIP(ip)) {
if (StringUtils.isNotEmpty(ip)) {
return ip;
}
return null;
Expand Down

0 comments on commit 744335b

Please sign in to comment.