denyhosts/conf.h

69 lines
1.1 KiB
C
Raw Normal View History

2022-07-07 16:52:24 +08:00
#ifndef CONF_H
#define CONF_H
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
typedef struct CONF
{
2022-07-07 16:52:24 +08:00
char *DAEMON;
int TIME;
2022-10-22 18:41:00 +08:00
2022-12-01 10:47:15 +08:00
// 磁盘使用率
int IS_DISK;
int DISK_USE;
2022-10-22 18:41:00 +08:00
// 杀毒
int CLAMAV;
char *CLAMAV_TIME;
int CLAMAV_TIME_LEN;
char *CLAMAV_ARG;
int CLAMAV_ARG_LEN;
int IS_BLOCKED;
2022-07-07 16:52:24 +08:00
// 获取公网IP Url地址
char *PUBLIC_IP;
2022-10-13 18:01:06 +08:00
// 地域白名单
int REGION;
int IP2REGION;
2022-10-13 18:01:06 +08:00
char *REGION_LIST;
int REGION_LIST_LEN;
// IPV4 白名单
int IPV4_RESTRICTION;
char *IPV4_WHITE_LIST;
int IPV4_WHITE_LIST_LEN;
2024-05-21 15:28:20 +08:00
// NGINX
int NGINX;
char *NGINX_LOG_FILE;
int NGINX_LOG_FILE_LEN;
char *NGINX_REGION_LIST;
int NGINX_REGION_LIST_LEN;
2022-07-07 16:52:24 +08:00
int IS_MAIL;
// 钉钉
2022-07-07 16:52:24 +08:00
int IS_DING_WEBHOOK;
char *PHONE;
char *DING_WEBHOOK;
// 第三方邮箱
2022-07-07 16:52:24 +08:00
int IS_QQMAIL;
//char *SEND_QQ;
//char *QQMAIL_KEY;
2022-07-07 16:52:24 +08:00
char *RECV_MAIL;
} conf;
2024-05-27 16:05:31 +08:00
extern void read_conf(char *filename, conf * configure);
extern void free_conf(conf * conf);
extern void ptintf_conf(conf * conf);
2022-07-07 16:52:24 +08:00
#endif