From cde5ea27649cdaede188fb6be3ff7bfb3df2cb74 Mon Sep 17 00:00:00 2001 From: leebj Date: Wed, 6 Nov 2024 15:05:21 +0900 Subject: [PATCH] no message --- src/main/java/cokr/xit/fims/base/web/MainController.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/cokr/xit/fims/base/web/MainController.java b/src/main/java/cokr/xit/fims/base/web/MainController.java index b9decfa1..b7513469 100644 --- a/src/main/java/cokr/xit/fims/base/web/MainController.java +++ b/src/main/java/cokr/xit/fims/base/web/MainController.java @@ -162,7 +162,7 @@ public class MainController extends cokr.xit.base.web.MainController { @RequestMapping(name="접속자 IP 확인", value="/ipInfo.do") public ModelAndView ipInfo(HttpServletRequest hreq) { - + String flag = hreq.getParameter("flag"); String remoteAddr = CmmnUtil.getClientIpAddr(hreq); String net = ""; @@ -171,7 +171,6 @@ public class MainController extends cokr.xit.base.web.MainController { String[] SGG_NET = {"211.119.124."}; if(remoteAddr.equals(LOCAL[0]) || remoteAddr.equals(LOCAL[1])) { - String flag = hreq.getParameter("flag"); if(flag != null && !flag.equals("")){ net = flag; } else { @@ -188,6 +187,9 @@ public class MainController extends cokr.xit.base.web.MainController { net = "intra"; } } + if(flag != null && !flag.equals("")){ + net = flag; + } } else { net = "inter"; }