mirror of
https://github.com/esphome/esphome.git
synced 2024-12-18 15:57:58 +01:00
Security improvement: Support wifi ap_timeout=0s (disable) (#5887)
This commit is contained in:
parent
657a7070cb
commit
b8fe4f8d56
@ -164,7 +164,7 @@ void WiFiComponent::loop() {
|
||||
|
||||
#ifdef USE_WIFI_AP
|
||||
if (this->has_ap() && !this->ap_setup_) {
|
||||
if (now - this->last_connected_ > this->ap_timeout_) {
|
||||
if (this->ap_timeout_ != 0 && (now - this->last_connected_ > this->ap_timeout_)) {
|
||||
ESP_LOGI(TAG, "Starting fallback AP!");
|
||||
this->setup_ap_config_();
|
||||
#ifdef USE_CAPTIVE_PORTAL
|
||||
|
Loading…
Reference in New Issue
Block a user