ddosIP导入根据DDOS Protocol
设置Protocol
This commit is contained in:
@@ -281,6 +281,13 @@ public class CheckIpFormatThread implements Callable<String>{
|
|||||||
String.format(prop.getProperty("can_not_null"), prop.getProperty("pps_threadshold"))
|
String.format(prop.getProperty("can_not_null"), prop.getProperty("pps_threadshold"))
|
||||||
+ ";");
|
+ ";");
|
||||||
}
|
}
|
||||||
|
if("TCP_SYN".equals(antiddosProtocol)) {
|
||||||
|
baseIpCfg.setProtocol(6);
|
||||||
|
}else if("UDP_NTP".equals(antiddosProtocol)) {
|
||||||
|
baseIpCfg.setProtocol(17);
|
||||||
|
}else if("UDP_DNS".equals(antiddosProtocol)) {
|
||||||
|
baseIpCfg.setProtocol(17);
|
||||||
|
}
|
||||||
}else {
|
}else {
|
||||||
baseIpCfg.setAntiddosProtocol("");
|
baseIpCfg.setAntiddosProtocol("");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user