代理-控制策略修改
1.白名单增加应答头域 2.操控:Redirect增加响应体域,Hijack/Inser增加SubscriberID域,修正URL必选 3.以上涉及导入相应修改
This commit is contained in:
@@ -1716,9 +1716,7 @@ public abstract class BaseService {
|
||||
this.saveComplexkeywordCfgBatch(regionDict,serviceDict,listPage, "http_req_head_cfg",send);
|
||||
}else
|
||||
// HTTP(s)响应头域
|
||||
if(regionDict.getDictId().intValue()==102 || regionDict.getDictId().intValue()==81 ||
|
||||
regionDict.getDictId().intValue()==87 || regionDict.getDictId().intValue()==93 ||
|
||||
regionDict.getDictId().intValue()==702) {
|
||||
if(regionDict.getConfigRegionValue().equals(Constants.HTTP_REDIRECT_RES_HEAD_REGION)) {
|
||||
this.saveComplexkeywordCfgBatch(regionDict,serviceDict,listPage, "http_res_head_cfg",send);
|
||||
}
|
||||
}else if("DnsResStrategy".equals(type)) {
|
||||
|
||||
@@ -191,11 +191,11 @@ public class DomainCommGroupService extends CrudService<CrudDao<DomainCommCfg>,
|
||||
serviceGroupIds = "";
|
||||
for (String groupId : strings) {
|
||||
Integer size = domainCommGroupDao.getCfgInfoByGroupIds(groupId);
|
||||
if(size == 0) { // 需配置取消
|
||||
if(size == 0) {
|
||||
boolean flag = groupManageService.checkCancelCfg(groupId, Constants.DOMAIN_OBJ_GROUP_TYPE);
|
||||
if(flag) { // 需配置更新
|
||||
if(flag) { // 需配置取消
|
||||
serviceGroupIds += ","+groupId;
|
||||
}else {
|
||||
}else { // 需配置更新
|
||||
groupIds += ","+groupId;
|
||||
}
|
||||
}else { // 需配置更新
|
||||
|
||||
@@ -184,11 +184,11 @@ public class IpCommGroupCfgService extends BaseService {
|
||||
serviceGroupIds = "";
|
||||
for (String groupId : strings) {
|
||||
Integer size = ipCommGroupCfgDao.getCfgInfoByGroupIds(groupId);
|
||||
if(size == 0) { // 需配置取消
|
||||
if(size == 0) {
|
||||
boolean flag = groupManageService.checkCancelCfg(groupId, Constants.IP_OBJ_GROUP_TYPE);
|
||||
if(flag) { // 需配置更新
|
||||
if(flag) { // 需配置取消
|
||||
serviceGroupIds += ","+groupId;
|
||||
}else {
|
||||
}else { // 需配置更新
|
||||
groupIds += ","+groupId;
|
||||
}
|
||||
}else { // 需配置更新
|
||||
|
||||
@@ -191,11 +191,11 @@ public class ScriberIdCommGroupService extends CrudService<CrudDao<ScriberIdComm
|
||||
serviceGroupIds = "";
|
||||
for (String groupId : strings) {
|
||||
Integer size = scriberIdCommGroupDao.getCfgInfoByGroupIds(groupId);
|
||||
if(size == 0) { // 需配置取消
|
||||
if(size == 0) {
|
||||
boolean flag = groupManageService.checkCancelCfg(groupId, Constants.SUBID_OBJ_GROUP_TYPE);
|
||||
if(flag) { // 需配置更新
|
||||
if(flag) { // 需配置取消
|
||||
serviceGroupIds += ","+groupId;
|
||||
}else {
|
||||
}else { // 需配置更新
|
||||
groupIds += ","+groupId;
|
||||
}
|
||||
}else { // 需配置更新
|
||||
|
||||
@@ -191,11 +191,11 @@ public class UrlCommGroupService extends CrudService<CrudDao<UrlCommCfg>, UrlCom
|
||||
serviceGroupIds = "";
|
||||
for (String groupId : strings) {
|
||||
Integer size = urlCommGroupDao.getCfgInfoByGroupIds(groupId);
|
||||
if(size == 0) { // 需配置取消
|
||||
if(size == 0) {
|
||||
boolean flag = groupManageService.checkCancelCfg(groupId, Constants.URL_OBJ_GROUP_TYPE);
|
||||
if(flag) { // 需配置更新
|
||||
if(flag) { // 需配置取消
|
||||
serviceGroupIds += ","+groupId;
|
||||
}else {
|
||||
}else { // 需配置更新
|
||||
groupIds += ","+groupId;
|
||||
}
|
||||
}else { // 需配置更新
|
||||
|
||||
Reference in New Issue
Block a user