-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
建议一:建议添加一个新的hosts修改方法,方法为powershell执行这一串代码:
Start-Process powershell -ArgumentList "Invoke-WebRequest -Uri 'https://github-hosts.tinsfox.com/hosts' -OutFile '$env:SystemRoot\System32\drivers\etc\hosts' -UseBasicParsing; exit" -Verb runAs; exit
建议二:希望增加一个本地检测GitHub的IP速度并将最快的添加到hosts,因为每个人的网络环境可能不完全相同,本地检测更适合所有人。说明及文件请看https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/about-githubs-ip-addresses和https://api.github.com/meta
具体的想法是使用一些著名CDN[www.jsdelivr.com]、镜像、代理等获取meta文件,并将meta的CIDR解码为ip范围(范围中随机选一个),在测速ip选出最快的,然后写入hosts。最好是powershell代码,这样实际使用仅仅需要一行代码(从远程下载执行)。
TinsFox, AxiomAegis and pyheight
Metadata
Metadata
Assignees
Labels
No labels