dns: fix init with only ipv4 enabled

This commit is contained in:
Christoph Baechler
2023-11-23 10:18:02 +00:00
committed by David Čermák
parent 542ba2997f
commit 5aab73d78f
+2
View File
@@ -328,7 +328,9 @@ dns_init(void)
/* initialize fallback dns DNS server address */ /* initialize fallback dns DNS server address */
ip_addr_t dnsserver; ip_addr_t dnsserver;
FALLBACK_DNS_SERVER_ADDRESS(&dnsserver); FALLBACK_DNS_SERVER_ADDRESS(&dnsserver);
#if LWIP_IPV4 && LWIP_IPV6
dnsserver.type = IPADDR_TYPE_V4; dnsserver.type = IPADDR_TYPE_V4;
#endif
dns_setserver(DNS_FALLBACK_SERVER_INDEX, &dnsserver); dns_setserver(DNS_FALLBACK_SERVER_INDEX, &dnsserver);
#endif /* FALLBACK_DNS_SERVER_ADDRESS */ #endif /* FALLBACK_DNS_SERVER_ADDRESS */