mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 16:08:10 +01:00
Don't test for IPv6 addresses when min_ipv6_addr_count is 0 (#7037)
This commit is contained in:
parent
ddaa84683b
commit
4c6a17e304
1 changed files with 1 additions and 1 deletions
|
@ -757,7 +757,7 @@ void WiFiComponent::wifi_process_event_(IDFWiFiEvent *data) {
|
|||
|
||||
WiFiSTAConnectStatus WiFiComponent::wifi_sta_connect_status_() {
|
||||
if (s_sta_connected && this->got_ipv4_address_) {
|
||||
#if USE_NETWORK_IPV6
|
||||
#if USE_NETWORK_IPV6 && (USE_NETWORK_MIN_IPV6_ADDR_COUNT > 0)
|
||||
if (this->num_ipv6_addresses_ >= USE_NETWORK_MIN_IPV6_ADDR_COUNT) {
|
||||
return WiFiSTAConnectStatus::CONNECTED;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue