mirror of
https://github.com/esphome/esphome.git
synced 2024-11-29 02:04:13 +01:00
Fixed dns2 for ethernet (#4698)
This commit is contained in:
parent
9da261cb39
commit
53c59cf675
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue