From fc82c569471abc55bc41f0f92667cffad2d10011 Mon Sep 17 00:00:00 2001 From: Nick Peng Date: Sun, 19 Nov 2023 19:54:19 +0800 Subject: [PATCH] dns_server: remove tcp keepalive EDNS cause DNSPOD not work. --- src/dns_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dns_client.c b/src/dns_client.c index 610a46ecfc..739e22ca34 100644 --- a/src/dns_client.c +++ b/src/dns_client.c @@ -3632,7 +3632,7 @@ static int _dns_client_send_query(struct dns_query_struct *query) } dns_set_OPT_payload_size(packet, DNS_IN_PACKSIZE); - dns_add_OPT_TCP_KEEPALIVE(packet, 1200); + /* dns_add_OPT_TCP_KEEPALIVE(packet, 1200); */ if (_dns_client_dns_add_ecs(query, packet) != 0) { tlog(TLOG_ERROR, "add ecs failed."); return -1;