Skip to content

Commit bd9875f

Browse files
thoradeaothms
authored andcommitted
set TLS to 1.2
1 parent 7994bcb commit bd9875f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

win/build-deps.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ exit /b %IFCOS_SCRIPT_RET%
488488
pushd "%2"
489489
if not exist "%~3". (
490490
call cecho.cmd 0 13 "Downloading %DEPENDENCY_NAME% into %~2."
491-
powershell -Command "$webClient = new-object System.Net.WebClient; $webClient.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials; $webClient.DownloadFile('%1', '%3')"
491+
powershell -Command "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; $webClient = new-object System.Net.WebClient; $webClient.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials; $webClient.DownloadFile('%1', '%3')"
492492
REM Old wget version in case someone has problem with PowerShell: wget --no-check-certificate %1
493493
) else (
494494
call cecho.cmd 0 13 "%DEPENDENCY_NAME% already downloaded. Skipping."

0 commit comments

Comments
 (0)