Your ROOT_URL in app.ini is https://source.parasitstudio.de:63000/ but you are visiting https://source.parasitstudio.de/wirtz/AutoConnect/commit/4424032c36faf8794efb1f192781465e65a1d226?style=unified&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
4 additions and
4 deletions
src/AutoConnectPage.cpp
src/AutoConnectTypes.h
@ -1573,8 +1573,8 @@ PageElement* AutoConnect::_setupPage(String& uri) {
* Allow the page set upped to authenticate .
* The argument parameter indicates that authentication is allowed with
* the condition of the AutoConnect . authScope setting .
* It determines to excep t authentication in the captive portal state
* when the EXCEPT CP is enabled .
* It determines to admi t authentication in the captive portal state
* when the AP_AUTHSCOPE_WITH CP is enabled .
* @ param allow Indication of whether to authenticate with the page .
*/
void AutoConnect : : _authentication ( bool allow ) {
@ -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_EXCEPT CP)
if ( _apConfig . authScope & ! AC_AUTHSCOPE_WITH CP)
allow = false ;
}
}
@ -52,7 +52,7 @@ typedef enum AC_AUTHSCOPE {
AC_AUTHSCOPE_AUX = 0x0002 , // All AUX-pages are affected by an authentication.
AC_AUTHSCOPE_AC = 0x0004 , // Allow authentication to AutoConnect pages.
AC_AUTHSCOPE_PORTAL = AC_AUTHSCOPE_AC | AC_AUTHSCOPE_AUX , // All AutoConnect pages are affected by an authentication.
AC_AUTHSCOPE_EXCEPTCP = 0x8000 // Ignore authentication even if AP only .
AC_AUTHSCOPE_WITHCP = 0x8000 // Allows authenticating in the standalone state .
} AC_AUTHSCOPE_t ;
/**< A type to enable authentication. */