This commit is contained in:
2025-07-23 15:00:23 +08:00
parent 1440451f8a
commit 1361b15f79
3 changed files with 13 additions and 18 deletions

View File

@@ -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) {