-
确定ip:https://github.com.ipaddress.com
-
确定静态资源ip:https://github.com.ipaddress.com/assets-cdn.github.com
-
确定域名ip:https://fastly.net.ipaddress.com/github.global.ssl.fastly.net
-
修改host:
sudo gedit /etc/hosts
-
在hosts最后加上前三步获得的内容
140.82.113.4 github.com 185.199.108.153 assert-cdn.github.com 146.75.77.194 github.global.ssl.fastly.net
-
重启network
sudo /etc/init.d/networking restart
更多推荐