mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-08 13:27:46 +00:00
修复异步操作导致的request null,IP获取错误
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