Commit 13da0bf6 authored by 李健华's avatar 李健华 Committed by 李健华

去掉IP验证日志


(cherry picked from commit 8a155c92)
parent 5eec7a23
......@@ -35,14 +35,14 @@ public class IpValidateAdvisor {
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
// 客户端IP
String clientIp = IpUtil.getRemoteIP(request);
log.error("Lock_ipv4-success: don't match white ip access:{}", clientIp);
// log.error("Lock_ipv4-success: don't match white ip access:{}", clientIp);
// 白名单
if (IpUtil.whiteOf(clientIp)) {
return pjp.proceed();
}
IpUtil.logIp(log, request);
log.error("Lock_ipv4: don't match white ip access:{}", clientIp);
// log.error("Lock_ipv4: don't match white ip access:{}", clientIp);
return JsonResult.buildErrorStateResult("非法访问", null);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment