Skip to content

Commit

Permalink
feat(lwip):add fall back dns config in menuconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
freakyxue authored and zhangyanjiaoesp committed Jan 25, 2024
1 parent 1de11ef commit a45be9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,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);
Expand Down

0 comments on commit a45be9e

Please sign in to comment.