Updated README.md

This commit is contained in:
PeratX 2017-04-22 11:17:03 +08:00
parent beb141de4c
commit 0cbf5db76d
6 changed files with 19 additions and 27 deletions

View File

@ -22,27 +22,9 @@ This application can create a VPN tunnel to modify the DNS server on Android.<br
No root access required, no ads contained and functional under data connection.<br> No root access required, no ads contained and functional under data connection.<br>
Through the DNS server which are provided by third parties, users can visit Google, Twitter and so on via https directly without a VPN.<br> Through the DNS server which are provided by third parties, users can visit Google, Twitter and so on via https directly without a VPN.<br>
-----------------
__CuteDNS! 近期惨遭举报建议某些人好自为之。__
__AIXYZ DNS 节点仅供学术用途使用__
__BEYOND THE MATRIX, FREE.__
~~本萌新第一个 Android 应用。~~<br>
不需要翻墙就能在 Android 上通过 https 协议直连 Google, Twitter, Facebook 等网站。<br>
通过由第三方 DNS 服务器提供者提供的 DNS 服务器,减少 DNS 劫持。<br>
~~(当然万能的 *** 想封了你也不是不行)~~ 。<br>
基于 Android API 提供的 VpnService 实现,不需要 root数据连接也可用。<br>
支持开机启动。 ~~BAT流氓软件~~ <br>
~~好吧故事编不下去了。~~ <br>
<br>
__各位 dalao 见笑了__
DNS server providers DNS server providers
------------- -------------
* __CuteDNS!__ * __CuteDNS!__ - *Stopped service because of the police.*
* __[Pure DNS](http://puredns.cn/)__ * __[Pure DNS](http://puredns.cn/)__
* __[AIXYZ DNS](https://aixyz.com/)__ - *For academic purposes only.* * __[AIXYZ DNS](https://aixyz.com/)__ - *For academic purposes only.*

View File

@ -33,13 +33,13 @@ public class Daedalus extends Application {
private static final String SHORTCUT_ID_ACTIVATE = "shortcut_activate"; private static final String SHORTCUT_ID_ACTIVATE = "shortcut_activate";
public static final List<DnsServer> DNS_SERVERS = new ArrayList<DnsServer>() {{ public static final List<DnsServer> DNS_SERVERS = new ArrayList<DnsServer>() {{
add(new DnsServer("0", "113.107.249.56", R.string.server_cutedns_north_china)); /*add(new DnsServer("0", "113.107.249.56", R.string.server_cutedns_north_china));
add(new DnsServer("1", "120.27.103.230", R.string.server_cutedns_east_china)); add(new DnsServer("1", "120.27.103.230", R.string.server_cutedns_east_china));
add(new DnsServer("2", "123.206.61.167", R.string.server_cutedns_south_china)); add(new DnsServer("2", "123.206.61.167", R.string.server_cutedns_south_china));*/
add(new DnsServer("3", "115.159.220.214", R.string.server_puredns_east_china)); add(new DnsServer("0", "115.159.220.214", R.string.server_puredns_east_china));
add(new DnsServer("4", "123.207.137.88", R.string.server_puredns_north_china)); add(new DnsServer("1", "123.207.137.88", R.string.server_puredns_north_china));
add(new DnsServer("5", "115.159.146.99", R.string.server_aixyz_east_china)); add(new DnsServer("2", "115.159.146.99", R.string.server_aixyz_east_china));
add(new DnsServer("6", "123.206.21.48", R.string.server_aixyz_south_china)); add(new DnsServer("3", "123.206.21.48", R.string.server_aixyz_south_china));
}}; }};
public static final String[] DEFAULT_TEST_DOMAINS = new String[]{ public static final String[] DEFAULT_TEST_DOMAINS = new String[]{
@ -76,6 +76,7 @@ public class Daedalus extends Application {
super.onTerminate(); super.onTerminate();
instance = null; instance = null;
prefs = null;
} }
public static void updateShortcut(Context context) { public static void updateShortcut(Context context) {

View File

@ -103,7 +103,9 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
protected void onDestroy() { protected void onDestroy() {
super.onDestroy(); super.onDestroy();
Log.d("DMainActivity", "onDestroy");
instance = null; instance = null;
System.gc();
} }
@Override @Override

View File

@ -159,7 +159,10 @@ public class ServerTestActivity extends AppCompatActivity {
stopThread(); stopThread();
mHandler.removeCallbacks(mRunnable); mHandler.removeCallbacks(mRunnable);
mRunnable = null; mRunnable = null;
mHandler.obtainMessage(MSG_TEST_DONE).sendToTarget();
mHandler = null; mHandler = null;
System.gc();
} }
private static void stopThread() { private static void stopThread() {
@ -193,6 +196,8 @@ public class ServerTestActivity extends AppCompatActivity {
startTestBtn.setVisibility(View.VISIBLE); startTestBtn.setVisibility(View.VISIBLE);
stopThread(); stopThread();
startTestBtn = null;
textViewTestInfo = null;
break; break;
} }
} }

View File

@ -173,6 +173,8 @@ public class DaedalusVpnService extends VpnService implements Runnable {
} else if (shouldRefresh) { } else if (shouldRefresh) {
Daedalus.updateShortcut(getApplicationContext()); Daedalus.updateShortcut(getApplicationContext());
} }
System.gc();
} }

View File

@ -8,13 +8,13 @@
<ListPreference <ListPreference
android:key="primary_server" android:key="primary_server"
android:title="@string/primary_server" android:title="@string/primary_server"
android:defaultValue="3"> android:defaultValue="0">
</ListPreference> </ListPreference>
<ListPreference <ListPreference
android:key="secondary_server" android:key="secondary_server"
android:title="@string/secondary_server" android:title="@string/secondary_server"
android:defaultValue="4"> android:defaultValue="1">
</ListPreference> </ListPreference>
<EditTextPreference <EditTextPreference
android:key="dns_test_servers" android:key="dns_test_servers"