Skip to content

Commit

Permalink
Set dnsServerStatus first to prevent running
Browse files Browse the repository at this point in the history
  • Loading branch information
tbnobody committed Oct 30, 2023
1 parent 6a64fe6 commit aba57e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NetworkSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ void NetworkSettingsClass::setupMode()
dnsServer->start(DNS_PORT, "*", WiFi.softAPIP());
dnsServerStatus = true;
} else {
dnsServer->stop();
dnsServerStatus = false;
dnsServer->stop();
if (_networkMode == network_mode::WiFi) {
WiFi.mode(WIFI_STA);
} else {
Expand Down

0 comments on commit aba57e6

Please sign in to comment.