|
|
|
|
@ -172,6 +172,7 @@ public class MainController extends cokr.xit.base.web.MainController {
|
|
|
|
|
String[] LOCAL = {"127.0.0.1", "0:0:0:0:0:0:0:1"};
|
|
|
|
|
String[] PRIVATES = {"10.","172.16.","172.31.","192.168."};
|
|
|
|
|
String XIT_NET = "211.119.124.";
|
|
|
|
|
List<String> EXTERNAL_ENT_NET = FimsConf.get().getExternalEntNet();
|
|
|
|
|
List<String> SGG_NET = FimsConf.get().getSggNet();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -187,6 +188,9 @@ public class MainController extends cokr.xit.base.web.MainController {
|
|
|
|
|
} else if(remoteAddr.startsWith(XIT_NET)) {
|
|
|
|
|
net = "intra";
|
|
|
|
|
flagUsable = true;
|
|
|
|
|
} else if(this.includeIp(remoteAddr,EXTERNAL_ENT_NET)){
|
|
|
|
|
net = "intra";
|
|
|
|
|
flagUsable = true;
|
|
|
|
|
} else if(this.includeIp(remoteAddr,SGG_NET)) {
|
|
|
|
|
net = "intra";
|
|
|
|
|
flagUsable = true;
|
|
|
|
|
@ -213,9 +217,16 @@ public class MainController extends cokr.xit.base.web.MainController {
|
|
|
|
|
|
|
|
|
|
if(ipBand != null && ipBand.size() > 0){
|
|
|
|
|
for(String item : ipBand) {
|
|
|
|
|
if(ipAddr.startsWith(item)) {
|
|
|
|
|
result = true;
|
|
|
|
|
if(item.endsWith(".")) {
|
|
|
|
|
if(ipAddr.startsWith(item)) {
|
|
|
|
|
result = true;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if(ipAddr.equals(item)) {
|
|
|
|
|
result = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
|