windows系统下,手动把cdn和ip地址绑定
1. 获取 github 的 global.ssl.fastly 地址
访问http://github.global.ssl.fastly.net.ipaddress.com/#ipinfo,获取cdn和ip域名
得到:
199.232.69.194 https://github.global.ssl.fastly.net
2. 获取github.com地址
访问https://github.com.ipaddress.com/#ipinfo,获取cdn和ip域名
得到:
140.82.114.3 https://github.com
3. 修改 host 文件映射上面查找到的 IP
3.1修改C:\Windows\System32\drivers\etc\hosts文件的权限,指定可写入:右击->hosts->属性->安全->编辑->点击Users->在Users的权限“写入”后面打勾。如下:
3.2右击->hosts->打开方式->选定记事本->在末尾处添加以下内容:
199.232.69.194 https://github.global.ssl.fastly.net
140.82.114.3 https://github.com