From d36a9a6ee8d8c2f79b78ea2a8fc1428a190487e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E5=AD=9F=E6=8D=B7?= <718335940@qq.com> Date: Wed, 19 Apr 2023 16:20:04 +0800 Subject: [PATCH] ghproxy -> ghraw --- UnBan1.list | 1 + UnBan1.yaml | 1 + update_url.py | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/UnBan1.list b/UnBan1.list index 4f7140f..8e1ea59 100644 --- a/UnBan1.list +++ b/UnBan1.list @@ -2,3 +2,4 @@ DOMAIN,dd.al DOMAIN,api.dler.io DOMAIN,api.subcsub.com DOMAIN,ghproxy.com +DOMAIN,ghraw.netlify.app diff --git a/UnBan1.yaml b/UnBan1.yaml index 7e85f11..c724960 100644 --- a/UnBan1.yaml +++ b/UnBan1.yaml @@ -3,3 +3,4 @@ payload: - DOMAIN,api.dler.io - DOMAIN,api.subcsub.com - DOMAIN,ghproxy.com +- DOMAIN,ghraw.netlify.app diff --git a/update_url.py b/update_url.py index 7960d41..bdad53b 100644 --- a/update_url.py +++ b/update_url.py @@ -114,7 +114,7 @@ if DDAL_EMAIL and DDAL_PASSWORD: def aliases_urls(name, suffix=''): if name: - yield alias + suffix, f"https://ghproxy.com/https://raw.githubusercontent.com/{GITHUB_REPOSITORY}/{GITHUB_SHA}/{name}" + yield alias + suffix, f"https://ghraw.netlify.app/{GITHUB_REPOSITORY}/{GITHUB_SHA}/{name}" _url = f"/sub?target=clash&udp=true&scv=true&config=https://raw.githubusercontent.com/{GITHUB_REPOSITORY}/{GITHUB_SHA}/{name}" yield from ((prefix + a + suffix, f"https://{h}{_url}") for a, h in SC_ALIASES_HOSTS) @@ -131,7 +131,7 @@ if DDAL_EMAIL and DDAL_PASSWORD: else: for name in [ini_file_name, ini_file_name_nocountry]: if name: - print(f"https://ghproxy.com/https://raw.githubusercontent.com/{GITHUB_REPOSITORY}/{GITHUB_REF_NAME}/{name}") + print(f"https://ghraw.netlify.app/{GITHUB_REPOSITORY}/{GITHUB_REF_NAME}/{name}") _url = f"/sub?target=clash&udp=true&scv=true&config=https://raw.githubusercontent.com/{GITHUB_REPOSITORY}/{GITHUB_REF_NAME}/{name}?url=" for _, h in SC_ALIASES_HOSTS: print(f"https://{h}{_url}")