离谱,2026年了 GitHub 居然不支持 IPv6

在一台只有 IPv6 的机器上,不能访问 GitHub…

然后我发现,2026年了,GitHub 居然不支持 IPv6,太离谱了吧 :scream:

不够,有人解决了这个问题:

这位用户创建了一个 Github IPv6 代理,只需要修改 hosts 文件,就可以直接用了:

/etc/hosts

2a01:4f8:c010:d56::2 github.com
2a01:4f8:c010:d56::3 api.github.com
2a01:4f8:c010:d56::4 codeload.github.com
2a01:4f8:c010:d56::6 ghcr.io
2a01:4f8:c010:d56::7 pkg.github.com npm.pkg.github.com maven.pkg.github.com nuget.pkg.github.com rubygems.pkg.github.com
2a01:4f8:c010:d56::8 uploads.github.com
2606:50c0:8000::133 objects.githubusercontent.com www.objects.githubusercontent.com release-assets.githubusercontent.com gist.githubusercontent.com repository-images.githubusercontent.com camo.githubusercontent.com private-user-images.githubusercontent.com avatars0.githubusercontent.com avatars1.githubusercontent.com avatars2.githubusercontent.com avatars3.githubusercontent.com cloud.githubusercontent.com desktop.githubusercontent.com support.github.com
2606:50c0:8000::154 support-assets.githubassets.com github.githubassets.com opengraph.githubassets.com github-registry-files.githubusercontent.com github-cloud.githubusercontent.com

感谢无私的用户们。

5 个赞

github是这样的,很多地方让人难以理解,比如新账户可以通过google账户注册,但老账户却无法绑定谷歌号

这个也不支持IPv6……

知乎答主琴梨梨在2022年就吐槽过,结果2026年了,还是没有长进。倒是国内网站基本都适配了。

国外V4够用自然对于适配V6没什么兴趣,国内V6开始大范围的普及其实还是5G之后,不过我没访问公网的需求我就还是关了V6,兼容性更好。