MAOS.git
Publicgit clone https://git.maproj.org/MAOS.gitMAOS.git / patches / networkstack_captive_portal.patch
networkstack_captive_portal.patch37 lines · 2.5 KiBRaw
| 1 | diff --git a/res/values/config.xml b/res/values/config.xml |
| 2 | index 65767cc..473e6f3 100644 |
| 3 | --- a/res/values/config.xml |
| 4 | +++ b/res/values/config.xml |
| 5 | @@ -13,7 +13,10 @@ |
| 6 | config_captive_portal_http_url and *NOT* by changing or overlaying |
| 7 | this resource. It will break if the enforcement of overlayable starts. |
| 8 | --> |
| 9 | - <string name="default_captive_portal_http_url_grapheneos" translatable="false">http://connectivitycheck.grapheneos.network/generate_204</string> |
| 10 | + <!-- MAOS: self-hosted endpoint. The overlayable config_captive_portal_http_url hook |
| 11 | + is not consulted by NetworkMonitor in this tree (it switches on ConnChecksSetting |
| 12 | + between the default_* values below), so the GrapheneOS default is repointed here. --> |
| 13 | + <string name="default_captive_portal_http_url_grapheneos" translatable="false">https://maproj.org/generate_204</string> |
| 14 | <string name="default_captive_portal_http_url" translatable="false">http://connectivitycheck.gstatic.com/generate_204</string> |
| 15 | <!-- HTTPS URL for network validation, to use for confirming internet connectivity. --> |
| 16 | <!-- default_captive_portal_https_url is not configured as overlayable so |
| 17 | @@ -22,7 +25,8 @@ |
| 18 | config_captive_portal_https_url and *NOT* by changing or overlaying |
| 19 | this resource. It will break if the enforcement of overlayable starts. |
| 20 | --> |
| 21 | - <string name="default_captive_portal_https_url_grapheneos" translatable="false">https://connectivitycheck.grapheneos.network/generate_204</string> |
| 22 | + <!-- MAOS: self-hosted endpoint (same note as above). --> |
| 23 | + <string name="default_captive_portal_https_url_grapheneos" translatable="false">https://maproj.org/generate_204</string> |
| 24 | <string name="default_captive_portal_https_url" translatable="false">https://www.google.com/generate_204</string> |
| 25 | |
| 26 | <!-- List of fallback URLs to use for detecting captive portals. --> |
| 27 | @@ -33,8 +37,8 @@ |
| 28 | this resource. It will break if the enforcement of overlayable starts. |
| 29 | --> |
| 30 | <string-array name="default_captive_portal_fallback_urls_grapheneos" translatable="false"> |
| 31 | - <item>http://grapheneos.online/gen_204</item> |
| 32 | - <item>http://grapheneos.online/generate_204</item> |
| 33 | + <!-- MAOS: self-hosted endpoint (same note as above). --> |
| 34 | + <item>https://maproj.org/generate_204</item> |
| 35 | </string-array> |
| 36 | <string-array name="default_captive_portal_fallback_urls" translatable="false"> |
| 37 | <item>http://www.google.com/gen_204</item> |