mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-07 12:59:01 +00:00
!53 修复异步操作导致的request null,IP获取错误
Merge pull request !53 from TwelveT/N/A
This commit is contained in:
@@ -14,6 +14,11 @@ public class IpUtils
|
||||
{
|
||||
public static String getIpAddr(HttpServletRequest request)
|
||||
{
|
||||
|
||||
if(request == null){
|
||||
return null;
|
||||
}
|
||||
|
||||
String ip = null;
|
||||
|
||||
// X-Forwarded-For:Squid 服务代理
|
||||
|
Reference in New Issue
Block a user