ddos IP导入protocl根据DDOS协议切换
This commit is contained in:
@@ -14,6 +14,14 @@ $(function(){
|
|||||||
$("#bpsThreadshold").attr("disabled","true");
|
$("#bpsThreadshold").attr("disabled","true");
|
||||||
$("#ppsThreadshold").attr("disabled","true");
|
$("#ppsThreadshold").attr("disabled","true");
|
||||||
}
|
}
|
||||||
|
if($("[name='protocol']").val()==0){
|
||||||
|
var _ddosProtocol=$("#antiddosProtocol").val();
|
||||||
|
if(_ddosProtocol=="TCP_SYN"){
|
||||||
|
$("[name='protocol']").val(6);
|
||||||
|
}else if(_ddosProtocol=="UDP_NTP"||_ddosProtocol=="UDP_DNS"){
|
||||||
|
$("[name='protocol']").val(17);
|
||||||
|
}
|
||||||
|
}
|
||||||
$("#antiddosProtocol").on("change",function(){
|
$("#antiddosProtocol").on("change",function(){
|
||||||
var ddosProtocol=$("#antiddosProtocol").val();
|
var ddosProtocol=$("#antiddosProtocol").val();
|
||||||
if(ddosProtocol==null||ddosProtocol==""){
|
if(ddosProtocol==null||ddosProtocol==""){
|
||||||
@@ -27,6 +35,11 @@ $(function(){
|
|||||||
$("#bpsThreadshold").removeAttr("disabled");
|
$("#bpsThreadshold").removeAttr("disabled");
|
||||||
$("#ppsThreadshold").removeAttr("disabled");
|
$("#ppsThreadshold").removeAttr("disabled");
|
||||||
}
|
}
|
||||||
|
if(ddosProtocol=="TCP_SYN"){
|
||||||
|
$("[name='protocol']").val(6);
|
||||||
|
}else if(ddosProtocol=="UDP_NTP"||ddosProtocol=="UDP_DNS"){
|
||||||
|
$("[name='protocol']").val(17);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
$(".action").on("change", function() {
|
$(".action").on("change", function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user