wsl无法ping通主机ip

文章封面

背景

今天在wsl上编译go程序,发现需要fq下载的包,下载不下来,于是我给wsl配置了一下代理

export http_proxy=http://172.18.39.162:7890 && export https_proxy=http://172.18.39.162:7890

172.18.39.162是我主机的ip

配置了还是不行,编译报错 image

wsl 访问宿主机ip 竟然没有route

解决方法

解决方法,关闭wifi共享 image 关闭就好了。。。

评论

暂无评论