로컬ip체크 수정

main
이범준 4 months ago
parent b130c642bd
commit bf6be3347c

@ -169,11 +169,11 @@ public class MainController extends cokr.xit.base.web.MainController {
String remoteAddr = CmmnUtil.getClientIpAddr(hreq);
String net = "";
String LOCAL = "127.0.0.1";
String[] LOCAL = {"127.0.0.1", "0:0:0:0:0:0:0:1"};
String[] PRIVATES = {"10.","172.16.","172.31.","192.168."};
String[] SGG_NET = {"211.119.124."};
if(remoteAddr.equals(LOCAL)) {
if(remoteAddr.equals(LOCAL[0]) || remoteAddr.equals(LOCAL[1])) {
String flag = hreq.getParameter("flag");
if(flag != null && !flag.equals("")){
net = flag;

Loading…
Cancel
Save