Pre Merge pull request !377 from fang.liu/master

This commit is contained in:
fang.liu 2022-03-27 03:11:21 +00:00 committed by Gitee
commit 551989b612
1 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,9 @@ public class IpUtils
ip = request.getRemoteAddr();
}
return "0:0:0:0:0:0:0:1".equals(ip) ? "127.0.0.1" : ip;
ip = "0:0:0:0:0:0:0:1".equals(ip) ? "127.0.0.1" : ip;
ip = ip.split(",")[0].trim();
return ip;
}
public static boolean internalIp(String ip)