From 97c5126a774a16de7393b21715efa5a49a43adcd Mon Sep 17 00:00:00 2001 From: arzezniczak Date: Thu, 11 May 2017 16:04:53 +0200 Subject: [PATCH] Authenticated proxy support for DownloadFile DownloadFile subroutine gets credentials from system settings. --- win/build-deps.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win/build-deps.cmd b/win/build-deps.cmd index cb97869a06..8f1de0fc1b 100644 --- a/win/build-deps.cmd +++ b/win/build-deps.cmd @@ -442,7 +442,7 @@ exit /b %IFCOS_SCRIPT_RET% pushd "%2" if not exist "%~3". ( call cecho.cmd 0 13 "Downloading %DEPENDENCY_NAME% into %~2." - powershell -Command "$webClient = new-object System.Net.WebClient; $webClient.DownloadFile('%1', '%3')" + powershell -Command "$webClient = new-object System.Net.WebClient; $webClient.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials; $webClient.DownloadFile('%1', '%3')" REM Old wget version in case someone has problem with PowerShell: wget --no-check-certificate %1 ) else ( call cecho.cmd 0 13 "%DEPENDENCY_NAME% already downloaded. Skipping."