From 924b1603f4d18bf5e6a3575c220cb933b14ca7c0 Mon Sep 17 00:00:00 2001 From: Dorae <86833913+Toperlock@users.noreply.github.com> Date: Mon, 6 Nov 2023 14:25:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=9B=B4=E6=8E=A5=E5=A4=84?= =?UTF-8?q?=E7=90=86base64=E5=86=85=E5=AE=B9=EF=BC=8C=E4=B8=8D=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E8=BF=9C=E7=A8=8B=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/main.py b/main.py index 5f36c9343..42ce96d25 100644 --- a/main.py +++ b/main.py @@ -116,6 +116,19 @@ def get_nodes(url): if url.startswith('sub://'): url = tool.b64Decode(url[6:]).decode('utf-8') urlstr = urllib.parse.urlparse(url) + if '://' not in url: + try: + content = tool.b64Decode(url).decode('utf-8') + data = parse_content(content) + processed_list = [] + for item in data: + if isinstance(item, tuple): + processed_list.extend([item[0], item[1]]) # 处理shadowtls + else: + processed_list.append(item) + return processed_list + except: + return None if not urlstr.scheme: content = get_content_form_file(url) else: