解决方案一:使用v*n
需花钱购买,本文不做讨论。
解决方案二:使用静态Host
1. 访问www.ipaddress.com,分别搜索github相关访问的域名对应的ip
本此搜索结果:
192.30.253.112 github.com
151.101.185.194 github.global.ssl.fastly.net
192.30.253.120 codeload.github.com
2.配置本地Host
路径:C:\Windows\System32\drivers\etc\hosts
如下图
3.刷新DNS
windows方法:cmd执行 ipconfig /flushdns
Linux方法:sudo dscacheutil -flushcache
sudo /etc/init.d/networking restart