diff --git a/src/main/webapp/WEB-INF/views/cfg/intercept/interceptForm.jsp b/src/main/webapp/WEB-INF/views/cfg/intercept/interceptForm.jsp
index d8cabe053..c4fbe96f3 100644
--- a/src/main/webapp/WEB-INF/views/cfg/intercept/interceptForm.jsp
+++ b/src/main/webapp/WEB-INF/views/cfg/intercept/interceptForm.jsp
@@ -338,12 +338,26 @@
$(".whiteListAction").addClass("hidden");
$(".spoofingAction").addClass("hidden");
$(".intensity").addClass("hidden");//域名关联度
- if(interceptRatelimitIp == 'intercept_ratelimit_ip'){
+ if(interceptRatelimitIp == 'intercept_ratelimit_ip'){
+ var selectedOp = $("select[name='"+protocolNamePrefix+"protocol']").find("option[selected]").val();
$("select[name='"+protocolNamePrefix+"protocol']").find("option").remove();
$("select[name='"+protocolNamePrefix+"protocol']").selectpicker("refresh");
- $("select[name='"+protocolNamePrefix+"protocol']").append("");
- $("select[name='"+protocolNamePrefix+"protocol']").append("");
- $("select[name='"+protocolNamePrefix+"protocol']").append("");
+ if((selectedOp == "0") || (typeof selectedOp == "undefined") || (!"${_cfg.cfgId}")){
+ var option1 = "";
+ var option2 = "";
+ var option3 = "";
+ }else if(selectedOp == "6"){
+ var option1 = "";
+ var option2 = "";
+ var option3 = "";
+ }else{
+ var option1 = "";
+ var option2 = "";
+ var option3 = "";
+ }
+ $("select[name='"+protocolNamePrefix+"protocol']").append(option1);
+ $("select[name='"+protocolNamePrefix+"protocol']").append(option2);
+ $("select[name='"+protocolNamePrefix+"protocol']").append(option3);
$("select[name='"+protocolNamePrefix+"protocol']").selectpicker("refresh");
switchRateLimitType();
}
@@ -378,11 +392,22 @@
$(".spoofingAction").addClass("hidden");
$(".intensity").addClass("hidden");//域名关联度
if(interceptRatelimitIp == 'intercept_ratelimit_ip'){
+ var selectedOp = $("select[name='"+protocolNamePrefix+"protocol']").find("option[selected]").val();
$("select[name='"+protocolNamePrefix+"protocol']").find("option").remove();
$("select[name='"+protocolNamePrefix+"protocol']").selectpicker("refresh");
//$("select[name='"+protocolNamePrefix+"protocol']").append("")
- $("select[name='"+protocolNamePrefix+"protocol']").append("")
- $("select[name='"+protocolNamePrefix+"protocol']").append("")
+ if((selectedOp == "6") || (typeof selectedOp == "undefined")){
+ var option1 = "";
+ var option2 = "";
+ }else if(selectedOp == "17"){
+ var option1 = "";
+ var option2 = "";
+ }else{
+ var option1 = "";
+ var option2 = "";
+ }
+ $("select[name='"+protocolNamePrefix+"protocol']").append(option1)
+ $("select[name='"+protocolNamePrefix+"protocol']").append(option2)
$("select[name='"+protocolNamePrefix+"protocol']").selectpicker("refresh");
}
if(interceptReplacePktBin == 'intercept_replace_pkt_bin'){
diff --git a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_en.js b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_en.js
index 8df1f6668..caeddedb8 100644
--- a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_en.js
+++ b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_en.js
@@ -84,6 +84,7 @@
config_sync_tip:"The system is being maintained and temporarily inaccessible.",
ipMaskSole:"IP already exists.",
noStrategyCheck:"No effective spoofing IP configuration",
- keywordLength:"Please enter a value between 4 and 1024 characters long."
+ keywordLength:"Please enter a value between 4 and 1024 characters long.",
+ arbitrary:"Arbitrarily"
});
}(jQuery));
diff --git a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_ru.js b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_ru.js
index ce196c9f8..d34858a80 100644
--- a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_ru.js
+++ b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_ru.js
@@ -84,6 +84,7 @@
config_sync_tip:"Система находится под техническим обслуживанием и временно недоступна.",
ipMaskSole:"IP уже существует.",
noStrategyCheck:"No effective spoofing IP configuration",
- keywordLength:"Введите между 4 и 1024 символов длинной."
+ keywordLength:"Введите между 4 и 1024 символов длинной.",
+ arbitrary:"Любой"
});
}(jQuery));
diff --git a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_zh.js b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_zh.js
index 714a7ff30..a1188474f 100644
--- a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_zh.js
+++ b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_zh.js
@@ -84,6 +84,7 @@
config_sync_tip:"系统正在维护中,暂时不可访问!",
ipMaskSole:"IP已存在",
noStrategyCheck:"策略组下无有效的欺骗IP配置",
- keywordLength:"请输入一个长度介于4 和1024 之间的字符串"
+ keywordLength:"请输入一个长度介于4 和1024 之间的字符串",
+ arbitrary:"任意"
});
}(jQuery));