Windows 10 2004版本中更新到WSL2之後發現和之前一直用的Proxifier存在衝突,啓動WSL的時候會出現提示:
參考的對象類型不支持嘗試的操作。
想要用WSL2的話就得執行
netsh winsock reset
但是再運行Proxifier的時候會出現提示:
自動修復完成後Proxifier可以正常用了,但是WSL2再啓動就又回到之前的錯誤提示,好煩~
逛了下WSL在Github上的Issue,發現了這個:
https://github.com/microsoft/WSL/issues/4177#issuecomment-597736482
We have a tool that can make this call:
http://www.proxifier.com/tmp/Test20200228/NoLsp.exe
Please just run as admin with the full path to wsl.exe as the parameter:
NoLsp.exe c:\windows\system32\wsl.exe
上面給出的工具下載地址直接打不開(你懂的),傳了一份放到CSDN上:
https://download.csdn.net/download/lpwmm/12485013
使用方法就是上面描述的,以管理員身份運行cmd後執行
NoLsp.exe c:\windows\system32\wsl.exe
然後再執行wsl
啓動就ojbk了~再同時啓動Proxifier也沒有報錯了!