Skip to content

Commit

Permalink
Make version check use TLS
Browse files Browse the repository at this point in the history
  • Loading branch information
kokolihapihvi committed Jul 25, 2019
1 parent e447776 commit e7a52cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RockSniffer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ private async void VersionCheck()
{
try
{
//Use TLS
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;

//GET git api for newest release
var request = WebRequest.CreateHttp("https://api.github.com/repos/kokolihapihvi/RockSniffer/releases/latest");
request.Accept = "application/vnd.github.v3+json";
Expand Down

0 comments on commit e7a52cf

Please sign in to comment.