We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a4de0b1 + c0bc59d commit 3b8e542Copy full SHA for 3b8e542
PoshBot/PoshBot.psm1
@@ -17,5 +17,6 @@ $PSDefaultParameterValues = @{
17
'ConvertTo-Json:Verbose' = $false
18
}
19
20
-# Enforce TLS 1.2
21
-[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
+# Ensure TLS 1.2 is available
+# Thanks to jborean93 for the code
22
+[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
0 commit comments