mirror of
https://github.com/MGislv/NekoX.git
synced 2024-07-04 11:13:36 +00:00
Fix link
This commit is contained in:
parent
5f2ce1b36d
commit
66e5306bbe
|
@ -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) ||
|
||||
|
|
|
@ -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"),
|
||||
|
|
Loading…
Reference in New Issue
Block a user