diff --git a/Makefile b/Makefile index 074607c..9cfb727 100644 --- a/Makefile +++ b/Makefile @@ -14,8 +14,9 @@ all: conf.o rhost.o libiptc.o static: conf.o rhost.o libiptc.o $(CC) $(IPTC_CFLAGS) -c libiptc/libip4tc.c -o libiptc/libip4tc.o ar crs libiptc/libip4tc.a libiptc/libip4tc.o - $(CC) $(CFLAGS) $^ -o $(OBG) libiptc/libip4tc.o -lcurl + $(CC) $(CFLAGS) $^ libiptc/libip4tc.o -o $(OBG) `/data/curl/bin/curl-config --cflags --static-libs` `pkg-config --libs --static libbrotlidec` clean: rm -rf *.o rm $(OBG) + rm libiptc/*.o libiptc/*.a diff --git a/README.md b/README.md index 1691406..c33aabc 100644 --- a/README.md +++ b/README.md @@ -49,11 +49,16 @@ global { IPV4_RESTRICTION = 1; // 是否启用百名单 - IPV4_WHITE_LIST = "1.193.37.156 117.158.215.217"; // IP白名单 + IPV4_WHITE_LIST = "1.1.1.1 "; // IP白名单 + + + REGION = 1; // 是否启用地域白名单 + REGION_LIST = "河南 郑州"; // 地域列表 + IS_BLOCKED = 1; // 是否封禁攻击IP - REFUSE_NUMBER = 5; // 拒绝攻击次数 + REFUSE_NUMBER = 3; // 拒绝攻击次数 IS_MAIL = 0; // 开启邮件告警 @@ -68,4 +73,5 @@ global { RECV_MAIL = "1605227279@qq.com"; // 接收者QQ } + ``` diff --git a/libiptc/libip4tc.a b/libiptc/libip4tc.a deleted file mode 100644 index 73b454c..0000000 Binary files a/libiptc/libip4tc.a and /dev/null differ diff --git a/libiptc/libip4tc.o b/libiptc/libip4tc.o deleted file mode 100644 index 892dbb4..0000000 Binary files a/libiptc/libip4tc.o and /dev/null differ