本文的WSL指Windows Subsystem for Linux[1],且特指WSL2这个版本。
要想让WSL2系统也能够走主系统的代理,需要进行如下设置:
%UserProfile%
目录下,创建.wslconfig
文件。[wsl2] networkingMode = mirrored dnsTunneling=true firewall=true autoProxy=true [experimental] autoMemoryReclaim=gradual
在这之后,重启WSL系统即可。