Skip to content

Commit

Permalink
Fix updates fail behind proxies that require NTLM authentication
Browse files Browse the repository at this point in the history
Set proxyauth to any-available so eg corporate proxies with windows logins work.

Fix #49, close #48
  • Loading branch information
gwinkless authored and donho committed Nov 22, 2023
1 parent 06a54ab commit 17f2ee0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/winmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,7 @@ bool downloadBinary(const wstring& urlFrom, const wstring& destTo, const wstring
{
curl_easy_setopt(curl, CURLOPT_PROXY, ws2s(proxyServerInfo.first).c_str());
curl_easy_setopt(curl, CURLOPT_PROXYPORT, proxyServerInfo.second);
curl_easy_setopt(curl, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
}
curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, CURLSSLOPT_ALLOW_BEAST | CURLSSLOPT_NO_REVOKE);

Expand Down Expand Up @@ -933,6 +934,7 @@ bool getUpdateInfo(const string& info2get, const GupParameters& gupParams, const
{
curl_easy_setopt(curl, CURLOPT_PROXY, ws2s(proxyServer.getProxyServer()).c_str());
curl_easy_setopt(curl, CURLOPT_PROXYPORT, proxyServer.getPort());
curl_easy_setopt(curl, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
}

curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, CURLSSLOPT_ALLOW_BEAST | CURLSSLOPT_NO_REVOKE);
Expand Down

0 comments on commit 17f2ee0

Please sign in to comment.