WSL网络代理出现问题 #7
Closed
A-Little-Nut
started this conversation in
General
Replies: 1 comment
-
|
问题已解决。 我因为 OOMOL Studio 会更新 WSL 版本,而之前在 WSL 获取 Host IP 的方案在较新版本的 WSL 中是不可用的。故导致了网络问题。 基于最新的 WSL 文档给出的_获取 Host IP_的方案后,问题解决。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我的windows系统里原本安装了WSL2作为了开发环境,同时在wsl中的.bashrc中配置了# WSL proxy
export hostip=$(cat /etc/resolv.conf |grep -oP '(?<=nameserver\ ).*')
export https_proxy="http://${hostip}:7890"
export http_proxy="http://${hostip}:7890",原本这样ubuntu子系统里可以正常访问google的,但是我安装完oomol软件,卸载它之后,我运行curl www.google.com.hk, 报错curl: (7) Failed to connect to 10.255.255.254 port 7890 after 0 ms: Could not connect to server。这是否与oomol的系统代理设置有关,我自己排查了很久依然没找到原因,10.255.255.254这个ip地址与ipconfig中的不一致,希望开发人员能否帮助我,谢谢
Beta Was this translation helpful? Give feedback.
All reactions