动态链接
This commit is contained in:
2
Makefile
2
Makefile
@@ -2,7 +2,7 @@ CROSS_COMPILE ?=
|
|||||||
CC := $(CROSS_COMPILE)gcc
|
CC := $(CROSS_COMPILE)gcc
|
||||||
STRIP := $(CROSS_COMPILE)strip
|
STRIP := $(CROSS_COMPILE)strip
|
||||||
CFLAGS += -g -Wall -Iip2region
|
CFLAGS += -g -Wall -Iip2region
|
||||||
LIBS = -static
|
LIBS =
|
||||||
BIN := denyip
|
BIN := denyip
|
||||||
|
|
||||||
# 使用shell命令获取库的链接选项
|
# 使用shell命令获取库的链接选项
|
||||||
|
|||||||
2
cap.c
2
cap.c
@@ -348,7 +348,7 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
while (1) {
|
while (1) {
|
||||||
|
|
||||||
printf("子进程当前Ipset Rule 名 %s\n", RULE_NAME);
|
printf("子进程当前 Ipset Rule 名 %s\n", RULE_NAME);
|
||||||
|
|
||||||
count = get_ip_count_in_ipset(RULE_NAME);
|
count = get_ip_count_in_ipset(RULE_NAME);
|
||||||
if (count >= 0) {
|
if (count >= 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user