手动把cdn和ip地址绑定。
第一步:获取 github 的 global.ssl.fastly 地址访问:http://github.global.ssl.fastly.net.ipaddress.com/#ipinfo 获取cdn和ip域名:
151.101.1.194 https://github.global.ssl.fastly.net
第二步:获取github.com地址访问:https://github.com.ipaddress.com/#ipinfo 获取cdn和ip:
140.82.112.3 http://github.com
第三步:修改 host 文件映射上面查找到的 IP
windows系统:
1、修改C:\Windows\System32\drivers\etc\hosts文件的权限,指定可写入:右击->hosts->属性->安全->编辑->点击Users->在Users的权限“写入”后面打勾。如下:
然后点击确定。
2、右击->hosts->打开方式->选定记事本(或者你喜欢的编辑器)->在末尾处添加以下内容:151.101.1.194 github.global.ssl.fastly.net
140.82.112.3 github.com
原文链接: https://ptshu.us.kg/2024/08/06/通过修改HOSTS文件对github-com进行加速/
版权声明: 转载请注明出处。