dns_server: fix local ttl issue

This commit is contained in:
Nick Peng
2023-03-04 11:21:48 +08:00
parent e897788098
commit 60a3719ec7
2 changed files with 30 additions and 5 deletions

View File

@@ -3283,10 +3283,6 @@ static int _dns_conf_load_post(void)
dns_conf_rr_ttl_max = dns_conf_rr_ttl_min;
}
if (dns_conf_local_ttl == 0) {
dns_conf_local_ttl = dns_conf_rr_ttl_min;
}
if (dns_resolv_file[0] == '\0') {
safe_strncpy(dns_resolv_file, DNS_RESOLV_FILE, sizeof(dns_resolv_file));
}