mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 09:49:12 +08:00
Fix GitHub download failures (#1760)
* Github changed to only accept TLS 1.2 connections, this fixes the resulting failures.
This commit is contained in:
parent
4f3fcae9d9
commit
a843e85c8b
@ -200,6 +200,8 @@ function Download-File {
|
|||||||
$Url,
|
$Url,
|
||||||
$File
|
$File
|
||||||
)
|
)
|
||||||
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||||
|
|
||||||
# I think this is the problem
|
# I think this is the problem
|
||||||
$File = $File -Replace "/", "\"
|
$File = $File -Replace "/", "\"
|
||||||
Write-Verbose "Downloading from $Url to $File"
|
Write-Verbose "Downloading from $Url to $File"
|
||||||
|
Loading…
Reference in New Issue
Block a user