Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cdd9ce8e authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Settings: change ping to quad9

parent c9c83817
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1167,7 +1167,7 @@ public class RadioInfo extends Activity {
    private final void pingHostname() {
        try {
            try {
                Process p4 = Runtime.getRuntime().exec("ping -c 1 www.google.com");
                Process p4 = Runtime.getRuntime().exec("ping -c 1 9.9.9.9");
                int status4 = p4.waitFor();
                if (status4 == 0) {
                    mPingHostnameResultV4 = "Pass";
@@ -1178,7 +1178,7 @@ public class RadioInfo extends Activity {
                mPingHostnameResultV4 = "Fail: IOException";
            }
            try {
                Process p6 = Runtime.getRuntime().exec("ping6 -c 1 www.google.com");
                Process p6 = Runtime.getRuntime().exec("ping6 -c 1 2620:fe::fe");
                int status6 = p6.waitFor();
                if (status6 == 0) {
                    mPingHostnameResultV6 = "Pass";
@@ -1200,7 +1200,7 @@ public class RadioInfo extends Activity {
        HttpURLConnection urlConnection = null;
        try {
            // TODO: Hardcoded for now, make it UI configurable
            URL url = new URL("https://www.google.com");
            URL url = new URL("https://9.9.9.9");
            urlConnection = (HttpURLConnection) url.openConnection();
            if (urlConnection.getResponseCode() == 200) {
                mHttpClientTestResult = "Pass";
+2 −2
Original line number Diff line number Diff line
@@ -343,7 +343,7 @@ public class WifiStatusTest extends Activity {
    private final void pingHostname() {
        try {
            // TODO: Hardcoded for now, make it UI configurable
            Process p = Runtime.getRuntime().exec("ping -c 1 -w 100 www.google.com");
            Process p = Runtime.getRuntime().exec("ping -c 1 -w 100 9.9.9.9");
            int status = p.waitFor();
            if (status == 0) {
                mPingHostnameResult = "Pass";
@@ -363,7 +363,7 @@ public class WifiStatusTest extends Activity {
        HttpURLConnection urlConnection = null;
        try {
            // TODO: Hardcoded for now, make it UI configurable
            URL url = new URL("https://www.google.com");
            URL url = new URL("https://9.9.9.9");
            urlConnection = (HttpURLConnection) url.openConnection();
            if (urlConnection.getResponseCode() == 200) {
                mHttpClientTestResult = "Pass";