优化公共函数

This commit is contained in:
2024-10-31 14:54:33 +08:00
parent fd186fe50a
commit 7de356fa85
6 changed files with 87 additions and 36 deletions

5
cap.c
View File

@@ -344,10 +344,11 @@ int main(int argc, char **argv)
snprintf(RULE_NAME, BUFFER, "root%d", RULE_NAME_NUMBER);
if (create_ipset(RULE_NAME) != 0) {
fprintf(stderr, "创建 IPSet %s 失败\n", RULE_NAME);
_printf("创建 IPSet %s 失败\n", RULE_NAME);
}
while (1) {
while (1)
{
_printf("子进程当前 Ipset Rule 名 %s\n", RULE_NAME);
count = get_ip_count_in_ipset(RULE_NAME);