diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2019-03-07 12:21:31 -0600 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2019-03-07 12:21:31 -0600 |
| commit | fc1bc78250432059edd552679b3efbb0e99a302c (patch) | |
| tree | c54046810b63a9b148acddc08d65baa83c6832d1 | |
| parent | 5e212ce60634e2ab670819541b7a25fdd422de0e (diff) | |
| download | nimterop-fc1bc78250432059edd552679b3efbb0e99a302c.tar.gz nimterop-fc1bc78250432059edd552679b3efbb0e99a302c.zip | |
Fix powershell TLS issue with download
| -rw-r--r-- | nimterop/git.nim | 2 |
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]) |
