在WSL2 Ubuntu18.04上执行指令

curl your_ip

发生了如下错误:

在网上查了很多不靠谱答案,配置文件位置也不确定。
ping了一下地址发现可以ping通,
感觉这个应该是代理导致的,
于是在curl后面加上了不使用代理:

curl your_ip --noproxy "*"

成功
curl: (7) Failed to connect to 127.**** port 1080: Connection refused on WSL2

或者设置代理:

curl your_ip --proxy :1080

通了,不知道为啥,莫名其妙。反正不设置proxy就是不行。

相关文章:

  • 2022-12-23
  • 2021-08-13
  • 2021-07-20
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-29
  • 2022-12-23
  • 2021-11-17
相关资源
相似解决方案