From fd417d0b2c35c12706b92ee6037c0223ebf77f07 Mon Sep 17 00:00:00 2001 From: William Boman Date: Wed, 16 Feb 2022 23:21:55 +0100 Subject: fix(powershell): set security protocol to TLS1.2 (#487) Fixes #480. --- lua/nvim-lsp-installer/installers/shell.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lua/nvim-lsp-installer/installers/shell.lua') diff --git a/lua/nvim-lsp-installer/installers/shell.lua b/lua/nvim-lsp-installer/installers/shell.lua index 62506155..e9bef862 100644 --- a/lua/nvim-lsp-installer/installers/shell.lua +++ b/lua/nvim-lsp-installer/installers/shell.lua @@ -79,7 +79,10 @@ function M.powershell(raw_script, opts) local default_opts = { env = {}, -- YIKES https://stackoverflow.com/a/63301751 - prefix = "$ProgressPreference = 'SilentlyContinue';", + prefix = [[ + $ProgressPreference = 'SilentlyContinue'; + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; + ]], } opts = vim.tbl_deep_extend("force", default_opts, opts or {}) -- cgit v1.2.3-70-g09d2