mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-13 01:44:26 -05:00
30 lines
1.6 KiB
Diff
30 lines
1.6 KiB
Diff
From 0030bc6ef203eb6ffc1300599db1fd48d4a77f78 Mon Sep 17 00:00:00 2001
|
|
From: Tad <tad@spotco.us>
|
|
Date: Tue, 8 May 2018 20:54:49 -0400
|
|
Subject: [PATCH] Change connectivity check URLs to ours
|
|
|
|
Change-Id: Idd9bfb4a09db763c97d0ea3aabf428176e28d48f
|
|
---
|
|
.../java/com/android/server/connectivity/NetworkMonitor.java | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/services/core/java/com/android/server/connectivity/NetworkMonitor.java b/services/core/java/com/android/server/connectivity/NetworkMonitor.java
|
|
index 97669d242f0..2a39f90b19b 100644
|
|
--- a/services/core/java/com/android/server/connectivity/NetworkMonitor.java
|
|
+++ b/services/core/java/com/android/server/connectivity/NetworkMonitor.java
|
|
@@ -86,9 +86,9 @@ public class NetworkMonitor extends StateMachine {
|
|
// Default configuration values for captive portal detection probes.
|
|
// TODO: append a random length parameter to the default HTTPS url.
|
|
// TODO: randomize browser version ids in the default User-Agent String.
|
|
- private static final String DEFAULT_HTTPS_URL = "https://www.google.com/generate_204";
|
|
+ private static final String DEFAULT_HTTPS_URL = "https://divestos.org/gen204.php";
|
|
private static final String DEFAULT_HTTP_URL =
|
|
- "http://connectivitycheck.gstatic.com/generate_204";
|
|
+ "http://divestos.org/gen204.php";
|
|
private static final String DEFAULT_FALLBACK_URL = "http://www.google.com/gen_204";
|
|
private static final String DEFAULT_USER_AGENT = "Mozilla/5.0 (X11; Linux x86_64) "
|
|
+ "AppleWebKit/537.36 (KHTML, like Gecko) "
|
|
--
|
|
2.17.0
|
|
|