فهرست منبع

Merge pull request #41477 from olljanat/fix-rs1-ci

Windows CI: Force Download-File function to use TLS 1.2 (fix to RS1 CI)
Sebastiaan van Stijn 4 سال پیش
والد
کامیت
8c8dad0549
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      Dockerfile.windows

+ 1 - 0
Dockerfile.windows

@@ -205,6 +205,7 @@ RUN `
       Throw ("Failed to download " + $source) `
       }`
     } else { `
+      [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; `
       $webClient = New-Object System.Net.WebClient; `
       $webClient.DownloadFile($source, $target); `
     } `