From c79be85f1d88f381f337dac42dc80e9917d57ea7 Mon Sep 17 00:00:00 2001 From: xueweihan <595666367@qq.com> Date: Fri, 9 Jul 2021 18:12:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AE=A2=E9=98=85=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README_template.md | 8 ++++---- fetch_ips.py | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README_template.md b/README_template.md index 3321d1485..a577ec2d9 100644 --- a/README_template.md +++ b/README_template.md @@ -28,8 +28,8 @@ 上面内容会自动定时更新,保证最新有效。数据更新时间:{update_time}(内容无变动不会更新) -- 文件:`https://raw.fastgit.org/521xueweihan/GitHub520/main/hosts` -- JSON:`https://raw.fastgit.org/521xueweihan/GitHub520/main/hosts.json` +- 文件:`https://api.hellogithub.com/GitHub520/hosts` +- JSON:`https://api.hellogithub.com/GitHub520/hosts.json` ### 2.1 手动方式 @@ -68,7 +68,7 @@ hosts 文件在每个系统的位置不一,详情如下: - Type: `Remote` -- URL: `https://raw.fastgit.org/521xueweihan/GitHub520/main/hosts` +- URL: `https://api.hellogithub.com/GitHub520/hosts` - Auto Refresh: 最好选 `1 hour` @@ -84,7 +84,7 @@ hosts 文件在每个系统的位置不一,详情如下: - 名称: 随意 -- URL: `https://cdn.jsdelivr.net/gh/521xueweihan/GitHub520@main/hosts`(和上面 SwitchHosts 使用的一样) +- URL: `https://api.hellogithub.com/GitHub520/hosts`(和上面 SwitchHosts 使用的一样) 如图: diff --git a/fetch_ips.py b/fetch_ips.py index fd2b51607..d1b5a16dd 100644 --- a/fetch_ips.py +++ b/fetch_ips.py @@ -29,6 +29,7 @@ RAW_URL = [ "gist.github.com", "github.io", "github.com", + "github.blog", "api.github.com", "raw.githubusercontent.com", "user-images.githubusercontent.com", @@ -56,7 +57,8 @@ HOSTS_TEMPLATE = """# GitHub520 Host Start {content} # Update time: {update_time} -# Star me GitHub url: https://github.com/521xueweihan/GitHub520 +# Update url: https://api.hellogithub.com/GitHub520/hosts +# Star me: https://github.com/521xueweihan/GitHub520 # GitHub520 Host End\n"""