Skip to content

Commit

Permalink
dns: fix init with only ipv4 enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
cbaechler authored and david-cermak committed Nov 23, 2023
1 parent 542ba29 commit 5aab73d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,9 @@ dns_init(void)
/* initialize fallback dns DNS server address */
ip_addr_t dnsserver;
FALLBACK_DNS_SERVER_ADDRESS(&dnsserver);
#if LWIP_IPV4 && LWIP_IPV6
dnsserver.type = IPADDR_TYPE_V4;
#endif
dns_setserver(DNS_FALLBACK_SERVER_INDEX, &dnsserver);
#endif /* FALLBACK_DNS_SERVER_ADDRESS */

Expand Down

0 comments on commit 5aab73d

Please sign in to comment.