fix proxy parse, #492

This commit is contained in:
luvletter2333 2021-05-06 00:10:34 +08:00
parent 1c6a86b164
commit 33e83cae6b
No known key found for this signature in database
GPG Key ID: BFD68B892BECC1D8
1 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ object ProxyUtil {
@JvmOverloads
fun parseProxies(text: String, tryDecode: Boolean = true): MutableList<String> {
if (tryDecode) {
if (tryDecode && !text.contains("proxies:")) {
try {
return parseProxies(String(Base64.decode(text, Base64.NO_PADDING)), false)
} catch (ignored: Exception) {
@ -98,7 +98,7 @@ object ProxyUtil {
} catch (ignored: JSONException) {
}
if (text.contains("proxies:\n")) {
if (text.contains("proxies:")) {
if (BuildVars.isMini) {
error(LocaleController.getString("MiniVersionAlert", R.string.MiniVersionAlert))