且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

SSL_connect:连接到github.com的SSL_ERROR_SYSCALL:443

更新时间:2022-06-18 10:13:08

在使用wget ...时,我也遇到了类似的错误,并且在Internet上进行了许多不成功的搜索后,我发现主机名被解析为IPv6时正在发生这种情况.地址.我是通过在两台计算机上比较wget ...的输出来发现这一点的,其中一台正在解析为IPv4并在那儿工作,另一台正在解析为IPv6并在那儿失败了.

I had this similar error when using wget ..., and after much unfruitful searching in the Internet, I discovered that it was happening when hostnames were being resolved to IPv6 addresses. I discovered this by comparing the outputs of wget ... in two machines, one was resolving to IPv4 and it worked there, the other was resolving to IPv6 and it failed there.

因此,我的解决方案是在macOS High Sierra 10.13.6上运行 networksetup -setv6off Wi-Fi . (我在页面中发现了此命令).

So the solution in my case was to run networksetup -setv6off Wi-Fi on macOS High Sierra 10.13.6. (I discovered this command in this page).

希望这对您有所帮助.