|
|
@ -162,7 +162,7 @@ public class MainController extends cokr.xit.base.web.MainController {
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(name="접속자 IP 확인", value="/ipInfo.do")
|
|
|
|
@RequestMapping(name="접속자 IP 확인", value="/ipInfo.do")
|
|
|
|
public ModelAndView ipInfo(HttpServletRequest hreq) {
|
|
|
|
public ModelAndView ipInfo(HttpServletRequest hreq) {
|
|
|
|
|
|
|
|
String flag = hreq.getParameter("flag");
|
|
|
|
String remoteAddr = CmmnUtil.getClientIpAddr(hreq);
|
|
|
|
String remoteAddr = CmmnUtil.getClientIpAddr(hreq);
|
|
|
|
|
|
|
|
|
|
|
|
String net = "";
|
|
|
|
String net = "";
|
|
|
@ -171,7 +171,6 @@ public class MainController extends cokr.xit.base.web.MainController {
|
|
|
|
String[] SGG_NET = {"211.119.124."};
|
|
|
|
String[] SGG_NET = {"211.119.124."};
|
|
|
|
|
|
|
|
|
|
|
|
if(remoteAddr.equals(LOCAL[0]) || remoteAddr.equals(LOCAL[1])) {
|
|
|
|
if(remoteAddr.equals(LOCAL[0]) || remoteAddr.equals(LOCAL[1])) {
|
|
|
|
String flag = hreq.getParameter("flag");
|
|
|
|
|
|
|
|
if(flag != null && !flag.equals("")){
|
|
|
|
if(flag != null && !flag.equals("")){
|
|
|
|
net = flag;
|
|
|
|
net = flag;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -188,6 +187,9 @@ public class MainController extends cokr.xit.base.web.MainController {
|
|
|
|
net = "intra";
|
|
|
|
net = "intra";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(flag != null && !flag.equals("")){
|
|
|
|
|
|
|
|
net = flag;
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
net = "inter";
|
|
|
|
net = "inter";
|
|
|
|
}
|
|
|
|
}
|
|
|
|