diff --git a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/utils/ProxyUtil.kt b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/utils/ProxyUtil.kt index 874a1b7fe..02cc64154 100644 --- a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/utils/ProxyUtil.kt +++ b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/utils/ProxyUtil.kt @@ -76,9 +76,11 @@ object ProxyUtil { @JvmOverloads fun parseProxies(text: String, tryDecode: Boolean = true): MutableList { - try { - return parseProxies(String(Base64.decode(text, Base64.NO_PADDING)), false) - } catch (ignored: Exception) { + if (tryDecode) { + try { + return parseProxies(String(Base64.decode(text, Base64.NO_PADDING)), false) + } catch (ignored: Exception) { + } } val proxies = mutableListOf()