From f79221431fa9042b3572d271d687de66da7560c4 Mon Sep 17 00:00:00 2001 From: xueyunfei Date: Mon, 27 Nov 2023 17:24:37 +0800 Subject: [PATCH] feat(lwip):add fall back dns config in menuconfig --- src/core/dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/dns.c b/src/core/dns.c index 7b1caccb0..02de62b63 100644 --- a/src/core/dns.c +++ b/src/core/dns.c @@ -328,7 +328,7 @@ dns_init(void) /* initialize fallback dns DNS server address */ ip_addr_t dnsserver; FALLBACK_DNS_SERVER_ADDRESS(&dnsserver); -#if LWIP_IPV4 && LWIP_IPV6 +#if LWIP_IPV4 && LWIP_IPV6 && ESP_LWIP_FALLBACK_DNS_PREFER_IPV4 dnsserver.type = IPADDR_TYPE_V4; #endif dns_setserver(DNS_FALLBACK_SERVER_INDEX, &dnsserver);