From 9f84e298529062889c2406738d456856db58574d Mon Sep 17 00:00:00 2001 From: aixiao Date: Fri, 25 Jul 2025 11:37:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E5=B0=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 2 +- cap.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f67109f..beb5723 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ CROSS_COMPILE ?= CC := $(CROSS_COMPILE)gcc STRIP := $(CROSS_COMPILE)strip -CFLAGS += -g -Wall -Iip2region +CFLAGS += -g -Wall -fsanitize=address -Iip2region LIBS = BIN := denyip diff --git a/cap.c b/cap.c index fcf1476..eb3aef2 100644 --- a/cap.c +++ b/cap.c @@ -409,7 +409,7 @@ int main(int argc, char **argv) } printf("cn_ip_len(cn_ip): %d\n", cn_ip_len(cn_ip)); - if (cn_ip_len(cn_ip) >= 10240) { // 清理集合 + if (cn_ip_len(cn_ip) >= 1024) { // 清理集合 clear_ip_set(cn_ip); truncate_file("cn.txt"); // 清空文件 }