This commit is contained in:
世界 2020-12-17 11:33:12 +08:00
parent 5f2ce1b36d
commit 66e5306bbe
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
2 changed files with 5 additions and 5 deletions

View File

@ -2878,8 +2878,8 @@ public class AndroidUtilities {
String link = data.toString();
if (link.startsWith("tg://proxy") ||
link.startsWith("tg://socks") ||
link.startsWith("https://t.me/proxy") ||
link.startsWith("https://t.me/socks") ||
link.startsWith("https://t.me/proxy?") ||
link.startsWith("https://t.me/socks?") ||
link.startsWith(VMESS_PROTOCOL) ||
link.startsWith(VMESS1_PROTOCOL) ||
link.startsWith(SS_PROTOCOL) ||

View File

@ -226,8 +226,8 @@ object ProxyUtil {
val url = link.replace("tg://", "https://t.me/").toHttpUrlOrNull()!!
AndroidUtilities.showProxyAlert(ctx,
url.queryParameter("server"),
url.queryParameter("port"),
url.queryParameter("server") ?: return false,
url.queryParameter("port") ?: return false,
url.queryParameter("user"),
url.queryParameter("pass"),
url.queryParameter("secret"),
@ -476,7 +476,7 @@ object ProxyUtil {
showLinkAlert(ctx, result.text)
val intArr = arrayListOf<Int>().toIntArray()
val intArr = arrayListOf<Int>().toIntArray()
} catch (ex: NoSuchMethodError) {