修复异步操作导致的request null,IP获取错误

2.X
TwelveT 4 years ago committed by 疯狂的狮子li
parent 173af7702b
commit f3e9db0c0b

@ -14,6 +14,11 @@ public class IpUtils
{
public static String getIpAddr(HttpServletRequest request)
{
if(request == null){
return null;
}
String ip = null;
// X-Forwarded-ForSquid 服务代理

Loading…
Cancel
Save