mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
60 lines
3.0 KiB
Diff
60 lines
3.0 KiB
Diff
From 3bf0b445f16aa7daa4981e70a7d5dc6c6ea530ea Mon Sep 17 00:00:00 2001
|
|
From: Tad <tad@spotco.us>
|
|
Date: Tue, 19 Dec 2017 17:00:40 -0500
|
|
Subject: [PATCH] Change fallback and tethering DNS servers to OpenNIC AnyCast
|
|
|
|
Change-Id: Ib550fad74bb95272c067a02a5da18a80e6ec1e87
|
|
---
|
|
core/res/res/values/config.xml | 2 +-
|
|
packages/SettingsLib/res/values/strings.xml | 4 ++--
|
|
services/core/java/com/android/server/connectivity/Tethering.java | 4 ++--
|
|
3 files changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
|
|
index c29ff3c90a9..f7cbb5780ff 100755
|
|
--- a/core/res/res/values/config.xml
|
|
+++ b/core/res/res/values/config.xml
|
|
@@ -1608,7 +1608,7 @@
|
|
<bool name="config_bluetooth_default_profiles">true</bool>
|
|
|
|
<!-- IP address of the dns server to use if nobody else suggests one -->
|
|
- <string name="config_default_dns_server" translatable="false">8.8.8.8</string>
|
|
+ <string name="config_default_dns_server" translatable="false">185.121.177.177</string>
|
|
|
|
<!-- The default mobile provisioning apn. Empty by default, maybe overridden by
|
|
an mcc/mnc specific config.xml -->
|
|
diff --git a/packages/SettingsLib/res/values/strings.xml b/packages/SettingsLib/res/values/strings.xml
|
|
index f9bd24ba69f..12b6f7cb700 100644
|
|
--- a/packages/SettingsLib/res/values/strings.xml
|
|
+++ b/packages/SettingsLib/res/values/strings.xml
|
|
@@ -837,9 +837,9 @@
|
|
<!-- Hint text for the IP address -->
|
|
<string name="wifi_ip_address_hint" translatable="false">192.168.1.128</string>
|
|
<!-- Hint text for DNS -->
|
|
- <string name="wifi_dns1_hint" translatable="false">8.8.8.8</string>
|
|
+ <string name="wifi_dns1_hint" translatable="false">185.121.177.177</string>
|
|
<!-- Hint text for DNS -->
|
|
- <string name="wifi_dns2_hint" translatable="false">8.8.4.4</string>
|
|
+ <string name="wifi_dns2_hint" translatable="false">169.239.202.202</string>
|
|
<!-- Hint text for the gateway -->
|
|
<string name="wifi_gateway_hint" translatable="false">192.168.1.1</string>
|
|
<!-- Hint text for network prefix length -->
|
|
diff --git a/services/core/java/com/android/server/connectivity/Tethering.java b/services/core/java/com/android/server/connectivity/Tethering.java
|
|
index f0cf0d98882..07157873169 100644
|
|
--- a/services/core/java/com/android/server/connectivity/Tethering.java
|
|
+++ b/services/core/java/com/android/server/connectivity/Tethering.java
|
|
@@ -181,8 +181,8 @@ public class Tethering extends BaseNetworkObserver implements IControlsTethering
|
|
};
|
|
|
|
private String[] mDefaultDnsServers;
|
|
- private static final String DNS_DEFAULT_SERVER1 = "8.8.8.8";
|
|
- private static final String DNS_DEFAULT_SERVER2 = "8.8.4.4";
|
|
+ private static final String DNS_DEFAULT_SERVER1 = "185.121.177.177";
|
|
+ private static final String DNS_DEFAULT_SERVER2 = "169.239.202.202";
|
|
|
|
private final StateMachine mTetherMasterSM;
|
|
private final UpstreamNetworkMonitor mUpstreamNetworkMonitor;
|
|
--
|
|
2.15.1
|
|
|