Skip to content

Commit d87d300

Browse files
committed
Captive portal: Samsung devices beginning to respond correctly
1 parent 4f83d81 commit d87d300

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/CaptivePortal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static bool captiveportal_start()
4848
return false;
4949
}
5050

51-
IPAddress apIP(10, 10, 10, 10);
51+
IPAddress apIP(4,3,2,1);
5252
if (!WiFi.AP.config(apIP, apIP, IPAddress(255, 255, 255, 0))) {
5353
OS_LOGE(TAG, "Failed to configure AP");
5454
WiFi.softAPdisconnect(true);

src/CaptivePortalInstance.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ CaptivePortalInstance::CaptivePortalInstance()
108108

109109
// Redirecting connection tests to the captive portal, triggering the "login to network" prompt
110110
m_webServer.onNotFound([](AsyncWebServerRequest* request) {
111-
String redirect_target = String("http://") + WiFi.softAPIP().toString();
111+
// String redirect_target = String("http://") + WiFi.softAPIP().toString();
112+
String redirect_target = String("/");
112113
request->redirect(redirect_target);
113114
OS_LOGE(TAG, "%s", redirect_target.c_str());
114115
});

0 commit comments

Comments
 (0)