From 883366830fc3af50d2232fc0b6d885f92c5d53ce Mon Sep 17 00:00:00 2001 From: Tad Date: Tue, 8 May 2018 20:53:07 -0400 Subject: [PATCH] Change connectivity check URLs to ours Change-Id: Idd9bfb4a09db763c97d0ea3aabf428176e28d48f --- .../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.org/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.org/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