dns_conf: fix speed-check-mode option incorrect issue.

This commit is contained in:
Nick Peng
2022-11-20 00:33:05 +08:00
parent ad4c2144da
commit bea238e7ae
2 changed files with 2 additions and 0 deletions

View File

@@ -2613,6 +2613,7 @@ static int _dns_server_process_answer(struct dns_request *request, const char *d
continue;
}
safe_strncpy(cname, domain_cname, DNS_MAX_CNAME_LEN);
request->ttl_cname = _dns_server_get_conf_ttl(ttl);;
tlog(TLOG_DEBUG, "name: %s ttl: %d cname: %s\n", name, ttl, cname);
} break;
case DNS_T_SOA: {