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

pull/53/head
TwelveT 4 years ago committed by Gitee
parent 0f733b89dc
commit 262d06ea3a

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

Loading…
Cancel
Save