Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6d4a3cd

Browse filesBrowse files
authored
use uriglob to catch all android captive portal requests
1 parent 9a4e178 commit 6d4a3cd
Copy full SHA for 6d4a3cd

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎libraries/DNSServer/examples/CaptivePortalAdvanced/CaptivePortalAdvanced.ino

Copy file name to clipboardExpand all lines: libraries/DNSServer/examples/CaptivePortalAdvanced/CaptivePortalAdvanced.ino
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <DNSServer.h>
55
#include <ESP8266mDNS.h>
66
#include <EEPROM.h>
7+
#include <uri/UriGlob.h>
78

89
/*
910
This example serves a "hello world" on a WLAN and a SoftAP at the same time.
@@ -74,7 +75,7 @@ void setup() {
7475
server.on("/", handleRoot);
7576
server.on("/wifi", handleWifi);
7677
server.on("/wifisave", handleWifiSave);
77-
server.on("/generate_204", handleRoot); // Android captive portal. Maybe not needed. Might be handled by notFound handler.
78+
server.on(UriGlob("/generate_204*"), handleRoot); // Android captive portal. Maybe not needed. Might be handled by notFound handler.
7879
server.on("/fwlink", handleRoot); // Microsoft captive portal. Maybe not needed. Might be handled by notFound handler.
7980
server.onNotFound(handleNotFound);
8081
server.begin(); // Web server start

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.