Commit be1aa20f authored by mseng3's avatar mseng3
Browse files

Update post-to-slack.ps1

parent 8c69a821
......@@ -50,9 +50,8 @@ Write-Output "$body"
# A better solution would be to change the system default TLS version to something higher than v1.1.
# https://api.slack.com/changelog/2019-07-deprecate-early-tls-versions
# https://www.reddit.com/r/PowerShell/comments/7zr0yu/invokewebrequest_windows_powershell_51_is_scaring/
#[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"
# https://github.com/RamblingCookieMonster/PSSlack/blob/master/PSSlack/PSSlack.psm1
#[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
# Send REST call
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment