完全静态编译
This commit is contained in:
parent
b8bd3f3afe
commit
71e5cd59d7
3
Makefile
3
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
|
||||
|
10
README.md
10
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
|
||||
}
|
||||
|
||||
|
||||
```
|
||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user