From a2a100bc4c747c203a5fee4ba024464ea62ef7f7 Mon Sep 17 00:00:00 2001 From: Hieromon Ikasamo Date: Tue, 19 May 2020 22:23:47 +0900 Subject: [PATCH] Fixed invalid AC_AUTHSCOPE_WITHCP mask #171 --- src/AutoConnectPage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }