diff --git a/src/AutoConnectPage.cpp b/src/AutoConnectPage.cpp index 77ed1ab..d799815 100644 --- a/src/AutoConnectPage.cpp +++ b/src/AutoConnectPage.cpp @@ -1587,7 +1587,7 @@ void AutoConnect::_authentication(bool allow) { if (WiFi.status() != WL_CONNECTED && (WiFi.getMode() & WIFI_AP)) { String accUrl = _webServer->hostHeader(); if ((accUrl != WiFi.softAPIP().toString()) && !accUrl.endsWith(F(".local"))) { - if (_apConfig.authScope & !AC_AUTHSCOPE_WITHCP) + if (!(_apConfig.authScope & AC_AUTHSCOPE_WITHCP)) allow = false; } }