From 9f35064b58c3d90ab2bc78900348224c52b22baf Mon Sep 17 00:00:00 2001
From: PeratX <1215714524@qq.com>
Date: Sat, 22 Apr 2017 13:28:29 +0800
Subject: [PATCH] Fixed DNS test failure
---
README.md | 24 ++++++++++---------
.../daedalus/activity/ServerTestActivity.java | 9 ++++---
app/src/main/res/values-zh/strings.xml | 2 +-
app/src/main/res/values/strings.xml | 12 +++++-----
4 files changed, 26 insertions(+), 21 deletions(-)
diff --git a/README.md b/README.md
index 251f290..db973f0 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-Daedalus
+iTXTech Daedalus
==============
-__See the world outside through a CLEAN DNS server.__
+__See the world outside through a CLEAN DNS.__
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -18,21 +18,23 @@ __See the world outside through a CLEAN DNS server.__
Introduction
-------------
-This application can create a VPN tunnel to modify the DNS server on Android.
+This application can create a VPN tunnel to modify the DNS settings on Android.
No root access required, no ads contained and functional under data connection.
-Through the DNS server which are provided by third parties, users can visit Google, Twitter and so on via https directly without a VPN.
+Through the DNS which are provided by third parties, users can visit Google, Twitter and so on via https directly without a VPN.
+
+__Users must comply with local laws and regulations.__
-DNS server providers
+DNS providers
-------------
-* __CuteDNS!__ - *Stopped service because of the police.*
-* __[Pure DNS](http://puredns.cn/)__
-* __[AIXYZ DNS](https://aixyz.com/)__ - *For academic purposes only.*
+* __CuteDNS!__ - *Stop service due to police intervention.*
+* __[Pure DNS](http://puredns.cn/)__ - *可能是迄今最不稳定的DNS。*
+* __[AIXYZ DNS](https://aixyz.com/)__ - __*For academic purposes only.*__
Requirements
-------------
-* Minimum Android version: 4.0.4 (API 15)
-* Recommended Android version: >= 5.0 (API 21)
-* Best Android version: >= 7.1 (API 25)
+* Minimum Android version: 4.0.4 (API 15) - __*Base VPN functions*__
+* Recommended Android version: >= 5.0 (API 21) - __*Full features*__
+* Best Android version: >= 7.1 (API 25) - __*Launcher shortcuts*__
Get Daedalus
-------------
diff --git a/app/src/main/java/org/itxtech/daedalus/activity/ServerTestActivity.java b/app/src/main/java/org/itxtech/daedalus/activity/ServerTestActivity.java
index bcf26e9..be48862 100644
--- a/app/src/main/java/org/itxtech/daedalus/activity/ServerTestActivity.java
+++ b/app/src/main/java/org/itxtech/daedalus/activity/ServerTestActivity.java
@@ -159,7 +159,7 @@ public class ServerTestActivity extends AppCompatActivity {
stopThread();
mHandler.removeCallbacks(mRunnable);
mRunnable = null;
- mHandler.obtainMessage(MSG_TEST_DONE).sendToTarget();
+ mHandler.shutdown();
mHandler = null;
System.gc();
@@ -185,6 +185,11 @@ public class ServerTestActivity extends AppCompatActivity {
this.textViewTestInfo = textViewTestInfo;
}
+ public void shutdown() {
+ startTestBtn = null;
+ textViewTestInfo = null;
+ }
+
public void handleMessage(Message msg) {
super.handleMessage(msg);
@@ -196,8 +201,6 @@ public class ServerTestActivity extends AppCompatActivity {
startTestBtn.setVisibility(View.VISIBLE);
stopThread();
- startTestBtn = null;
- textViewTestInfo = null;
break;
}
}
diff --git a/app/src/main/res/values-zh/strings.xml b/app/src/main/res/values-zh/strings.xml
index a820b8c..9760287 100644
--- a/app/src/main/res/values-zh/strings.xml
+++ b/app/src/main/res/values-zh/strings.xml
@@ -16,7 +16,7 @@
CuteDNS! 华北
备用 DNS 服务器
正在测试指定的 DNS 服务器……
- 测试服务器
+ DNS 测试
开始测试
测试域名:
耗时:
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 64f38b6..e6235d2 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1,7 +1,7 @@
Daedalus
Settings
- See the world outside through a CLEAN DNS server.
+ See the world outside through a CLEAN DNS.
Activate
Deactivate
About
@@ -9,17 +9,17 @@
System settings
Auto activate on boot
Server settings
- Primary DNS server
+ Primary DNS
CuteDNS! South China
CuteDNS! East China
CuteDNS! North China
- Secondary DNS server
- Testing specified DNS server …
- Server test
+ Secondary DNS
+ Testing specified DNS …
+ DNS test
Start test
Test domain:
Time used:
- DNS server:
+ DNS:
Address:
DNS query failed. Timeout or unknown hostname.
google.com