mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Force Download-File function to use TLS 1.2
Signed-off-by: Olli Janatuinen <olli.janatuinen@gmail.com>
This commit is contained in:
parent
0bad48279e
commit
88126e84a5
1 changed files with 1 additions and 0 deletions
|
@ -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); `
|
||||
} `
|
||||
|
|
Loading…
Reference in a new issue