常见工具的代理设置.

常见工具的代理设置.

socks5代理转http代理可见 openwrt安装privoxy转换socks5到http代理

1
2
$env:http_proxy="http://10.18.18.1:1071"
$env:https_proxy="http://10.18.18.1:1071"

scoop config proxy 10.18.18.1:1071 ## HTTP

1
2
3
4
5
6
7
8
git config --global http.proxy socks5://10.18.18.1:1071
git config --global https.proxy socks5://10.18.18.1:1071

git config --global --unset http.proxy
git config --global --unset https.proxy

git config --global --get http.proxy
git config --global --get https.proxy
1
2
3
4
5
set HTTP_PROXY=http://10.18.18.1:1071
set HTTPS_PROXY=http://10.18.18.1:1071

set HTTP_PROXY=
set HTTPS_PROXY=
1
2
3
4
netsh winhttp set proxy proxy-server="http://10.18.18.1:1071"
netsh winhttp set proxy proxy-server="http://10.18.18.1:1071" bypass-list="*.local"
netsh winhttp show proxy
netsh winhttp reset proxy
1
2
3
4
5
setx HTTP_PROXY "http://10.18.18.1:1071"
setx HTTPS_PROXY "http://10.18.18.1:1071"

setx HTTP_PROXY ""
setx HTTPS_PROXY ""