Skip to content

使用感受和建议 #7

Description

@Lyu-Bin

建议一:建议添加一个新的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代码,这样实际使用仅仅需要一行代码(从远程下载执行)。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions