Lupeipei / Lupeipei.github.io

my blog:
https://luciaca.cn
3 stars 2 forks source link

posts/set-proxy-for-electron/ #18

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

electron 代理配置 | Lucia

踩了两次坑, 记录下.

https://lupeipei.github.io/posts/set-proxy-for-electron/

Lupeipei commented 2 years ago

Windows 下, cmd 使用 set 设置环境变量, 如: set GLOBAL_AGENT_HTTP_PROXY=http://127.0.0.1:7890 set GLOBAL_AGENT_HTTPS_PROXY=http://127.0.0.1:7890 set ELECTRON_GET_USE_PROXY=1