File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 527527
528528 // ===== WEB INTERFACE ===== //
529529 #define WEB_ENABLED true
530- #define WEB_CAPTIVE_PORTAL true
530+ #define WEB_CAPTIVE_PORTAL false
531531 #define WEB_USE_SPIFFS false
532532 #define DEFAULT_LANG "en"
533533
Original file line number Diff line number Diff line change @@ -396,9 +396,8 @@ namespace wifi {
396396 // use it to load content from SPIFFS
397397 server.onNotFound ([] () {
398398 if (!handleFileRead (server.uri ())) {
399- server.send (404 , str (W_TXT), str (W_FILE_NOT_FOUND));
400- // server.send(200, "text/html", indexhtml);
401- // sendProgmem(indexhtml, sizeof(indexhtml), W_HTML);
399+ if (settings::getWebSettings ().captive_portal ) sendProgmem (indexhtml, sizeof (indexhtml), W_HTML);
400+ else server.send (404 , str (W_TXT), str (W_FILE_NOT_FOUND));
402401 }
403402 });
404403
You can’t perform that action at this time.
0 commit comments