remove test URL for ChinaList

This commit is contained in:
V.E.O
2018-04-19 23:53:19 +08:00
parent d17d791b3b
commit 8e83272fa7
5 changed files with 1 additions and 13 deletions
@@ -166,9 +166,7 @@ class MainActivity : AppCompatActivity(), ShadowsocksConnection.Interface, Drawe
*/
private fun testConnection(id: Int) {
val (success, result) = try {
val urlString = when (app.currentProfile!!.route) {
Acl.CHINALIST -> DataStore.testUrlChinaList
else -> DataStore.testUrl}
val urlString = DataStore.testUrl
val url = URL(urlString)
if (url.protocol != "https")
throw MalformedURLException(getString(R.string.connection_test_url_non_https, urlString))