mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-09-05 17:12:09 +00:00
35 lines
2.0 KiB
Diff
35 lines
2.0 KiB
Diff
From 883366830fc3af50d2232fc0b6d885f92c5d53ce Mon Sep 17 00:00:00 2001
|
|
From: Tad <tad@spotco.us>
|
|
Date: Tue, 8 May 2018 20:53:07 -0400
|
|
Subject: [PATCH] Change connectivity check URLs to ours
|
|
|
|
Change-Id: I2dac7210f9c7e953d5ee88e2871bd26c234dfce6
|
|
---
|
|
.../com/android/server/connectivity/NetworkMonitor.java | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/services/core/java/com/android/server/connectivity/NetworkMonitor.java b/services/core/java/com/android/server/connectivity/NetworkMonitor.java
|
|
index d3a93542c74..32918aa3cdc 100644
|
|
--- a/services/core/java/com/android/server/connectivity/NetworkMonitor.java
|
|
+++ b/services/core/java/com/android/server/connectivity/NetworkMonitor.java
|
|
@@ -91,12 +91,12 @@ 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.xyz/gen204.php";
|
|
private static final String DEFAULT_HTTP_URL =
|
|
- "http://connectivitycheck.gstatic.com/generate_204";
|
|
- private static final String DEFAULT_FALLBACK_URL = "http://www.google.com/gen_204";
|
|
+ "http://divestos.xyz/gen204.php";
|
|
+ private static final String DEFAULT_FALLBACK_URL = "https://www.google.com/generate_204";
|
|
private static final String DEFAULT_OTHER_FALLBACK_URLS =
|
|
- "http://play.googleapis.com/generate_204";
|
|
+ "http://connectivitycheck.gstatic.com/generate_204";
|
|
private static final String DEFAULT_USER_AGENT = "Mozilla/5.0 (X11; Linux x86_64) "
|
|
+ "AppleWebKit/537.36 (KHTML, like Gecko) "
|
|
+ "Chrome/60.0.3112.32 Safari/537.36";
|
|
--
|
|
2.17.0
|
|
|