修改百度API地址

This commit is contained in:
2025-07-23 14:27:02 +08:00
parent bd21381806
commit 1440451f8a
4 changed files with 6 additions and 5 deletions

3
cap.c
View File

@@ -38,7 +38,7 @@ void Processing_IP_addresses(char *src_ip)
// 如果ipset规则已经存在则跳过查询
snprintf(ipset_query_command, sizeof(ipset_query_command), "ipset test %s %s 2>/dev/null", RULE_NAME, src_ip);
if (system(ipset_query_command) == 0) {
_printf(RED "Ipset 规则内已经存在 %s\n" REDEND, src_ip);
//_printf(RED "Ipset 规则内已经存在 %s\n" REDEND, src_ip);
return;
}
@@ -50,6 +50,7 @@ void Processing_IP_addresses(char *src_ip)
printf("%s ", cn_ip[i]);
}
}
if (cn_ip_len(cn_ip) >= 10240) { // 清理集合
clear_ip_set(cn_ip);
truncate_file("cn.txt"); // 清空文件