Fixed dns2 for ethernet (#4698)

This commit is contained in:
Jimmy Hedman 2023-04-16 22:10:07 +02:00 committed by GitHub
parent 6b67acbeb5
commit 382dcddf12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -276,7 +276,7 @@ void EthernetComponent::start_connect_() {
#endif #endif
dns_setserver(0, &d); dns_setserver(0, &d);
} }
if (uint32_t(this->manual_ip_->dns1) != 0) { if (uint32_t(this->manual_ip_->dns2) != 0) {
ip_addr_t d; ip_addr_t d;
#if LWIP_IPV6 #if LWIP_IPV6
d.type = IPADDR_TYPE_V4; d.type = IPADDR_TYPE_V4;