mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 03:07:21 +02:00
Merge branch 'bugfix/set_ipv6_dns_error_v4.3' into 'release/v4.3'
lw ip: Fixed that ipv6 dns cannot work (v4.3) See merge request espressif/esp-idf!19063
This commit is contained in:
@ -1479,7 +1479,9 @@ static esp_err_t esp_netif_set_dns_info_api(esp_netif_api_msg_t *msg)
|
|||||||
|
|
||||||
ip_addr_t *lwip_ip = (ip_addr_t*)&dns->ip;
|
ip_addr_t *lwip_ip = (ip_addr_t*)&dns->ip;
|
||||||
#if CONFIG_LWIP_IPV6 && LWIP_IPV4
|
#if CONFIG_LWIP_IPV6 && LWIP_IPV4
|
||||||
lwip_ip->type = IPADDR_TYPE_V4;
|
if (!IP_IS_V4(lwip_ip) && !IP_IS_V6(lwip_ip)) {
|
||||||
|
lwip_ip->type = IPADDR_TYPE_V4;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
if (esp_netif->flags & ESP_NETIF_DHCP_SERVER) {
|
if (esp_netif->flags & ESP_NETIF_DHCP_SERVER) {
|
||||||
#if ESP_DHCPS
|
#if ESP_DHCPS
|
||||||
|
Reference in New Issue
Block a user