chore: 디버깅 용 코드 추가 건

main
thkim 2025-11-21 17:08:58 +09:00
parent fc2d0fe018
commit b221e42d88
2 changed files with 6 additions and 0 deletions

View File

@ -159,6 +159,7 @@ public class MainController {
String[] allowIp = {"0:0:0:0:0:0:0:1", "127.0.0.1", "218.49.16.78", "218.49.21.65", "218.232.234.161"};
List<String> allowIpList = new ArrayList<>(Arrays.asList(allowIp)); // 배열을 ArrayList로 변환
allowIpList.add("218.232.234.211"); // WAS 서버 IP
allowIpList.add("110.8.164.135"); // DBNTECH Public IP
allowIpList.add("118.219.150.34"); // DBNTECH Public IP
allowIpList.add("192.168.0.251"); // DBNTECH Private IP

View File

@ -84,6 +84,11 @@ public class UserInfo implements Serializable {
public static boolean getSession(HttpServletRequest request, String source) {
boolean isLoginSuccess = false;
if( source == null ) {
System.out.println("source is null");
} else {
System.out.println("source [" + source + "]");
}
HttpSession session = request.getSession(false);
if (((session != null) && (session.getAttribute(source + ".userID") != null)) || (session.getAttribute(source + ".userName") != null))
isLoginSuccess = true;