-
Notifications
You must be signed in to change notification settings - Fork 319
Connect the NO_PROXY
environment variable to the WinHTTP backend to match the curl backend
#1598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@microsoft-github-policy-service agree |
if (GetEnvironmentVariableW(L"HTTPS_PROXY", https_proxy_env, sizeof(https_proxy_env) / sizeof(wchar_t))) | ||
{ | ||
access_type = WINHTTP_ACCESS_TYPE_NAMED_PROXY; | ||
proxy_setting = https_proxy_env; | ||
proxy_bypass_setting = L"<local>"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I observe tls12-download said <local>
while the main product said nullptr
; I think x-download
is more widely used and thus want to resolve conflicts in favor of it, so I changed this one to nullptr.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also fixed tls12-download.c; can you double check the changes I pushed?
NO_PROXY
environment variable to the WinHTTP backend to match the curl backend
Thanks for your contribution! |
Patch for bypass list in proxy.
Now vcpkg ignores this setting, and it is real problem in corporate networks behind proxy.
Especially with mixed environments: some packages are public, some are private.
In Windows I turned on WPAD for WinHTTP.
In Linux I added "no_proxy" element to be passed to curl.