Skip to content

Commit

Permalink
Fix downloader selection
Browse files Browse the repository at this point in the history
  • Loading branch information
florelis committed Jul 31, 2024
1 parent 9825812 commit ad5ba3e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/AppInstallerCommonCore/NetworkSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ namespace AppInstaller::Settings
// We only use WinINet if specified by settings, or if we want to use proxy (as DO does not support that)
InstallerDownloader setting = User().Get<Setting::NetworkDownloader>();

if (setting != InstallerDownloader::WinInet && m_proxyUri)
{
AICLI_LOG(Core, Info, << "Forcing use of wininet for download as DO does not support proxy");
if (setting == InstallerDownloader::WinInet || m_proxyUri)
{
if (setting != InstallerDownloader::WinInet)
{
AICLI_LOG(Core, Info, << "Forcing use of wininet for download as DO does not support proxy");
}

return InstallerDownloader::WinInet;
}
else // Default or DO
Expand Down

0 comments on commit ad5ba3e

Please sign in to comment.