优化
This commit is contained in:
@@ -208,7 +208,6 @@ int get_ip_count_in_ipset(char *set_name)
|
||||
return ip_count;
|
||||
}
|
||||
|
||||
|
||||
void add_iptables_rule(const char *rule_name)
|
||||
{
|
||||
char iptables_command[256];
|
||||
@@ -221,7 +220,6 @@ void add_iptables_rule(const char *rule_name)
|
||||
fprintf(stderr, "Error: iptables command is too long.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
// 执行命令并检查返回值
|
||||
int ret = system(iptables_command);
|
||||
if (ret != 0) {
|
||||
|
||||
Reference in New Issue
Block a user