|
|
|
@ -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;
|
|
|
|
|