Skip to content

Commit

Permalink
fix Captive portal not showing in AP+STA mode
Browse files Browse the repository at this point in the history
  • Loading branch information
KipK committed Feb 25, 2023
1 parent 2e5e593 commit f7b1009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ void handleNotFound(MongooseHttpServerRequest *request)
DBUG("NOT_FOUND: ");
dumpRequest(request);

if(net.isWifiModeApOnly()) {
if((WIFI_AP_STA == WiFi.getMode()) || (WIFI_AP == WiFi.getMode())) {
// Redirect to the home page in AP mode (for the captive portal)
MongooseHttpServerResponseStream *response = request->beginResponseStream();
response->setContentType(CONTENT_TYPE_HTML);
Expand Down

0 comments on commit f7b1009

Please sign in to comment.