Skip to content

Commit

Permalink
update captive portal
Browse files Browse the repository at this point in the history
  • Loading branch information
TrystanLea committed Feb 1, 2024
1 parent c30f915 commit c9f8b16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions index.php
Expand Up @@ -166,11 +166,13 @@
// --------------------------------------------------------------------------------------
// Special routes

// Captive portal (android only)
if ($route->controller=="generate_204") {
// Captive portal (android working, no luck on iOS yet)
if ($route->controller=="generate_204" || $route->controller=="hotspot-detect") {
header('Location: /');
exit;
}
// if (get('q')=="library/test/success.html") { header('Location: /'); exit; }


// Return brief device descriptor for hub detection
if ($route->controller=="describe") {
Expand Down
2 changes: 1 addition & 1 deletion version.json
@@ -1,6 +1,6 @@
{
"name" : "Emoncms Core",
"version" : "11.4.8",
"version" : "11.4.9",
"location" : "/var/www",
"branches_available": ["stable","master"]
}

0 comments on commit c9f8b16

Please sign in to comment.