Fix parse
This commit is contained in:
parent
5efb0b1ad9
commit
8f08d090c5
@ -76,9 +76,11 @@ object ProxyUtil {
|
||||
@JvmOverloads
|
||||
fun parseProxies(text: String, tryDecode: Boolean = true): MutableList<String> {
|
||||
|
||||
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<String>()
|
||||
|
Loading…
Reference in New Issue
Block a user