Skip to content

Commit 85664ec

Browse files
author
Spacehuhn
committed
Fixed captive portal setting
1 parent 7d9c2f5 commit 85664ec

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

esp8266_deauther/A_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@
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

esp8266_deauther/wifi.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)