Fixed captive portal setting
This commit is contained in:
parent
7d9c2f5d84
commit
85664ec6c2
|
@ -527,7 +527,7 @@
|
|||
|
||||
// ===== WEB INTERFACE ===== //
|
||||
#define WEB_ENABLED true
|
||||
#define WEB_CAPTIVE_PORTAL true
|
||||
#define WEB_CAPTIVE_PORTAL false
|
||||
#define WEB_USE_SPIFFS false
|
||||
#define DEFAULT_LANG "en"
|
||||
|
||||
|
|
|
@ -396,9 +396,8 @@ namespace wifi {
|
|||
// use it to load content from SPIFFS
|
||||
server.onNotFound([] () {
|
||||
if (!handleFileRead(server.uri())) {
|
||||
server.send(404, str(W_TXT), str(W_FILE_NOT_FOUND));
|
||||
//server.send(200, "text/html", indexhtml);
|
||||
//sendProgmem(indexhtml, sizeof(indexhtml), W_HTML);
|
||||
if(settings::getWebSettings().captive_portal) sendProgmem(indexhtml, sizeof(indexhtml), W_HTML);
|
||||
else server.send(404, str(W_TXT), str(W_FILE_NOT_FOUND));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue