Add support EDNS TCP-keep-alive

This commit is contained in:
Nick Peng
2019-02-24 03:18:25 +08:00
parent 7c2df9c96b
commit 02213de0ee
3 changed files with 96 additions and 6 deletions

View File

@@ -2182,7 +2182,7 @@ static int _dns_client_send_query(struct dns_query_struct *query, char *doamin)
}
dns_set_OPT_payload_size(packet, DNS_IN_PACKSIZE);
/* dns_add_OPT_TCP_KEEYALIVE(packet, 600); */
if (_dns_client_dns_add_ecs(packet, query->qtype) != 0) {
tlog(TLOG_ERROR, "add ecs failed.");
return -1;