seanmonstar / reqwest

An easy and powerful Rust HTTP Client
https://docs.rs/reqwest
Apache License 2.0
9.91k stars 1.12k forks source link

reqwest should honor machine-scope system proxy configuration on Windows #1970

Open talagrand opened 1 year ago

talagrand commented 1 year ago

reqwest attempts to configure itself to use the system proxy, since #683.

On Windows, this appears to only work on the current per-user configured proxy: https://github.com/seanmonstar/reqwest/blob/17c893ffc0d3832d61cb1c0cf278340b7e95557e/src/proxy.rs#L893C4-L893C26

If a machine-scope proxy is configured, this should also be auto-configured as well, e.g. from an elevated PowerShell window:

Set-WinhttpProxy -ProxyServer "<ip>:8080"
Set-WinhttpProxy -SettingScope Machine -Proxy "<ip>:8080"
caesay commented 17 hours ago

+1