# windows 设置系统代理

PAC自动代理

C#
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
AutoConfigURL

设置pac文件地址例如 http://127.0.0.1/pac.pac

环境变量代理

C#
http代理
setx http_proxy "http://127.0.0.1" -m
setx https_proxy "http://127.0.0.1" -m

socks5代理
setx http_proxy "socks5h://127.0.0.1:1080" -m
setx https_proxy "socks5h://127.0.0.1:1080" -m

取消代理
setx http_proxy "" -m
setx https_proxy "" -m

代理验证
setx http_proxy_user "username" -m
setx http_proxy_pass "password" -m
setx https_proxy_user "username" -m
setx https_proxy_pass "password" -m