사용자 bean 에 ip 담기 변경
This commit is contained in:
@@ -39,7 +39,6 @@ public class ApiLogFunction {
|
||||
|
||||
public static String getXFowardedForIp(HttpServletRequest request) {
|
||||
String ip = request.getHeader("X-Forwarded-For");
|
||||
log.info("HEADER [x-forwarded-for] = {}", ip);
|
||||
if (ip != null) {
|
||||
ip = ip.split(",")[0].trim();
|
||||
}
|
||||
|
||||
@@ -74,7 +74,6 @@ public class ApiResponseAdvice implements ResponseBodyAdvice<Object> {
|
||||
}
|
||||
|
||||
String ip = ApiLogFunction.getXFowardedForIp(servletRequest);
|
||||
// String ip = HeaderUtil.get(servletRequest, "kamco-user-ip");
|
||||
Long userid = null;
|
||||
String loginAttemptId = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user