Skip to content

Commit f7b1009

Browse files
committed
fix Captive portal not showing in AP+STA mode
1 parent 2e5e593 commit f7b1009

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/web_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@ void handleNotFound(MongooseHttpServerRequest *request)
12101210
DBUG("NOT_FOUND: ");
12111211
dumpRequest(request);
12121212

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

0 commit comments

Comments
 (0)