Commit 29c06971 authored by 李健华's avatar 李健华

Merge branch 'cherry-pick-8a155c92' into 'master'

去掉IP验证日志

See merge request !18
parents 5eec7a23 13da0bf6
......@@ -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