[英]How to change chrome proxy via command line windows?
我尝试使用以下方式更新设置:
netsh winhttp set proxy proxy-server="127.0.0.1:8080" bypass-list=""
还尝试了:
netsh winhttp set proxy proxy-server="http=127.0.0.1:8080" bypass-list=""
但是没有效果,流量只是不通过代理。
我也使用了这个:
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d 127.0.0.2:8080 /f
但是问题是,即使我使用以下方式禁用了代理,但一旦选择了一个代理,便无法覆盖设置:
reg add "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f
设置保持不变,我必须去Internet Explorer> Internet选项>连接> Lan设置来更改它,该命令不再起作用了,只是第一次。
我错了,
reg add "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f
可以解决问题的方法是,必须重新启动浏览器才能应用更改。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.