esp-rs / espup

Tool for installing and maintaining Espressif Rust ecosystem.
Apache License 2.0
224 stars 23 forks source link

Add socks5 proxy support #423

Closed chenaoxd closed 6 months ago

chenaoxd commented 6 months ago

Added support for SOCKS5 proxy, which is important for users in China.

chenaoxd commented 6 months ago

We can use the HTTP_PROXY and HTTPS_PROXY environment variables to specify a SOCKS5 proxy. However, if the socks feature in reqwest is not enabled, the proxy settings will not work. This issue is documented at https://github.com/seanmonstar/reqwest/issues/790. I have tested this locally and confirmed that after enabling the socks feature, the SOCKS5 proxy settings function correctly.