dns_conf: set default check point time to 24h.

This commit is contained in:
Nick Peng
2023-12-02 19:23:33 +08:00
parent 52a35a5f88
commit cde9fe5d5c
2 changed files with 2 additions and 1 deletions

View File

@@ -122,7 +122,7 @@ char dns_conf_ca_path[DNS_MAX_PATH];
char dns_conf_cache_file[DNS_MAX_PATH];
int dns_conf_cache_persist = 2;
int dns_conf_cache_checkpoint_time;
int dns_conf_cache_checkpoint_time = DNS_DEFAULT_CHECKPOINT_TIME;
/* auditing */
int dns_conf_audit_enable = 0;

View File

@@ -59,6 +59,7 @@ extern "C" {
#define DNS_MAX_CONF_CNAME_LEN 256
#define MAX_QTYPE_NUM 65535
#define DNS_MAX_REPLY_IP_NUM 8
#define DNS_DEFAULT_CHECKPOINT_TIME (3600 * 24)
#define SMARTDNS_CONF_FILE "/etc/smartdns/smartdns.conf"
#define SMARTDNS_LOG_FILE "/var/log/smartdns/smartdns.log"