wsl: 检测到 localhost 代理配置,但未镜像到 WSL。NAT 模式下的 WSL 不支持 localhost 代理
·
问题
wsl: 检测到 localhost 代理配置,但未镜像到 WSL。NAT 模式下的 WSL 不支持 localhost 代理
解决
在Windows中的C:\Users<your_username>目录下创建一个.wslconfig文件,在文件中写入如下内容
[experimental]
autoMemoryReclaim=gradual # gradual | dropcache | disabled
networkingMode=mirrored
dnsTunneling=true
firewall=true
autoProxy=true
然后wsl --shutdown关闭后重启wsl.
参考
更多推荐
所有评论(0)