Compare commits

...

2 Commits

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"}; 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로 변환 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("110.8.164.135"); // DBNTECH Public IP
allowIpList.add("118.219.150.34"); // DBNTECH Public IP allowIpList.add("118.219.150.34"); // DBNTECH Public IP
allowIpList.add("192.168.0.251"); // DBNTECH Private 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) { public static boolean getSession(HttpServletRequest request, String source) {
boolean isLoginSuccess = false; boolean isLoginSuccess = false;
if( source == null ) {
System.out.println("source is null");
} else {
System.out.println("source [" + source + "]");
}
HttpSession session = request.getSession(false); HttpSession session = request.getSession(false);
if (((session != null) && (session.getAttribute(source + ".userID") != null)) || (session.getAttribute(source + ".userName") != null)) if (((session != null) && (session.getAttribute(source + ".userID") != null)) || (session.getAttribute(source + ".userName") != null))
isLoginSuccess = true; isLoginSuccess = true;