物理机git clone时跑满带宽,但是 WSL2 里只有 10-100kb 左右。尝试过代理仍然效果甚微。每次git clone或者push时都会卡顿很久会有反应。
搜了一圈没有找到解决方法,来问问 V 友们
# ~/.bashrc
export windows_host=`cat /etc/resolv.conf|grep nameserver|awk '{print $2}'`
export ALL_PROXY=socks5://$windows_host:7890
export HTTP_PROXY=$ALL_PROXY
export http_proxy=$ALL_PROXY
export HTTPS_PROXY=$ALL_PROXY
export https_proxy=$ALL_PROXY
# ~/.gitconfig
[proxy]
https = socks5://172.28.144.1:7890
http = http://172.28.144.1:7890