mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 21:44:55 +01:00
Enable IPv6 when manual IPv4 is enabled (#7381)
This commit is contained in:
parent
816b060edc
commit
04ec6c5677
1 changed files with 6 additions and 6 deletions
|
@ -472,13 +472,13 @@ void EthernetComponent::start_connect_() {
|
||||||
if (err != ESP_ERR_ESP_NETIF_DHCP_ALREADY_STARTED) {
|
if (err != ESP_ERR_ESP_NETIF_DHCP_ALREADY_STARTED) {
|
||||||
ESPHL_ERROR_CHECK(err, "DHCPC start error");
|
ESPHL_ERROR_CHECK(err, "DHCPC start error");
|
||||||
}
|
}
|
||||||
#if USE_NETWORK_IPV6
|
|
||||||
err = esp_netif_create_ip6_linklocal(this->eth_netif_);
|
|
||||||
if (err != ESP_OK) {
|
|
||||||
ESPHL_ERROR_CHECK(err, "Enable IPv6 link local failed");
|
|
||||||
}
|
|
||||||
#endif /* USE_NETWORK_IPV6 */
|
|
||||||
}
|
}
|
||||||
|
#if USE_NETWORK_IPV6
|
||||||
|
err = esp_netif_create_ip6_linklocal(this->eth_netif_);
|
||||||
|
if (err != ESP_OK) {
|
||||||
|
ESPHL_ERROR_CHECK(err, "Enable IPv6 link local failed");
|
||||||
|
}
|
||||||
|
#endif /* USE_NETWORK_IPV6 */
|
||||||
|
|
||||||
this->connect_begin_ = millis();
|
this->connect_begin_ = millis();
|
||||||
this->status_set_warning();
|
this->status_set_warning();
|
||||||
|
|
Loading…
Reference in a new issue