Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Feb 27, 2020
1 parent 71bdcf2 commit 2d44b87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions WindowsGSM-Updater/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ private static string GetLocalVersion()

private static string GetLatestVersion()
{
//This fix https://media.discordapp.net/attachments/672192387749249034/680771835440398361/Capture.PNG
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

if (WebRequest.Create("https://api.github.com/repos/WindowsGSM/WindowsGSM/releases/latest") is HttpWebRequest webRequest)
{
webRequest.Method = "GET";
Expand Down
4 changes: 2 additions & 2 deletions WindowsGSM-Updater/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.1.0")]
[assembly: AssemblyFileVersion("1.0.1.0")]
[assembly: AssemblyVersion("1.0.2.0")]
[assembly: AssemblyFileVersion("1.0.2.0")]

0 comments on commit 2d44b87

Please sign in to comment.