解决GitHub图片不显示问题

最近发现 GitHub 的图片打不开了,如下

原因是域名污染,这个就不解释了,反正照着下面的解决方法搞定就行。

解决方法:

打开 C:WindowsSystem32driversetc 下的 hosts 文件

在最后加入如下内容保存就可以了。

# GitHub
192.30.253.112    github.com 
192.30.253.119    gist.github.com
151.101.184.133    assets-cdn.github.com
151.101.184.133    raw.githubusercontent.com
151.101.184.133    gist.githubusercontent.com
151.101.184.133    cloud.githubusercontent.com
151.101.184.133    camo.githubusercontent.com
151.101.184.133    avatars0.githubusercontent.com
151.101.184.133    avatars1.githubusercontent.com
151.101.184.133    avatars2.githubusercontent.com
151.101.184.133    avatars3.githubusercontent.com
151.101.184.133    avatars4.githubusercontent.com
151.101.184.133    avatars5.githubusercontent.com
151.101.184.133    avatars6.githubusercontent.com
151.101.184.133    avatars7.githubusercontent.com
151.101.184.133    avatars8.githubusercontent.com

注:如果无法保存,可以用 vscode 打开,以管理员身份保存覆盖;或者复制一份,修改保存后再替换即可。

如果以后又无法打开了,解决方法还是修改此文件更新ip,最终效果如下

声明:本站部分文章内容及图片转载于互联 、内容不代表本站观点,如有内容涉及侵权,请您立即联系本站处理,非常感谢!

(0)
上一篇 2020年4月17日
下一篇 2020年4月17日

相关推荐