aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Viswanathan <dev@genotrance.com>2019-03-07 12:21:31 -0600
committerGanesh Viswanathan <dev@genotrance.com>2019-03-07 12:21:31 -0600
commitfc1bc78250432059edd552679b3efbb0e99a302c (patch)
treec54046810b63a9b148acddc08d65baa83c6832d1
parent5e212ce60634e2ab670819541b7a25fdd422de0e (diff)
downloadnimterop-fc1bc78250432059edd552679b3efbb0e99a302c.tar.gz
nimterop-fc1bc78250432059edd552679b3efbb0e99a302c.zip
Fix powershell TLS issue with download
-rw-r--r--nimterop/git.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/nimterop/git.nim b/nimterop/git.nim
index c51c079..9998a44 100644
--- a/nimterop/git.nim
+++ b/nimterop/git.nim
@@ -68,7 +68,7 @@ proc downloadUrl*(url, outdir: string) =
echo "Downloading " & file
mkDir(outdir)
var cmd = if defined(Windows):
- "powershell wget $# -OutFile $#"
+ "powershell [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; wget $# -OutFile $#"
else:
"curl $# -o $#"
discard execAction(cmd % [url, outdir/file])