Fixed invalid AC_AUTHSCOPE_WITHCP mask #171

enhance/v120
Hieromon Ikasamo 5 years ago
parent 4424032c36
commit a2a100bc4c
  1. 2
      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;
}
}

Loading…
Cancel
Save