disable captiveportal for webportal

This commit is contained in:
tablatronix
2023-11-17 19:37:44 -06:00
parent 9df7acdeeb
commit 3efb536629
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -2422,7 +2422,7 @@ void WiFiManager::handleNotFound() {
*/
boolean WiFiManager::captivePortal() {
if(!_enableCaptivePortal) return false; // skip redirections, @todo maybe allow redirection even when no cp ? might be useful
if(!_enableCaptivePortal || !configPortalActive) return false; // skip redirections if cp not enabled or not in ap mode
String serverLoc = toStringIp(server->client().localIP());