Skip to content

Commit

Permalink
Update TLS version
Browse files Browse the repository at this point in the history
  • Loading branch information
AyrA committed Mar 17, 2020
1 parent db059a4 commit abebe9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion MakeMKV/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ private static void ExecDir(string ExePath)
/// <returns>MakeMKV Key (null on problems)</returns>
private static MakeMKV GetKey()
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
HttpWebRequest WReq = WebRequest.CreateHttp("https://cable.ayra.ch/makemkv/api.php?xml");
WebResponse WRes;
//If you modify the tool, please add some personal twist to the user agent string
Expand All @@ -107,8 +108,9 @@ private static MakeMKV GetKey()
{
WRes = WReq.GetResponse();
}
catch
catch(Exception ex)
{
System.Diagnostics.Debug.Print(ex.Message);
return default(MakeMKV);
}
using (WRes)
Expand Down
4 changes: 2 additions & 2 deletions MakeMKV/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,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("2.0.0.0")]
[assembly: AssemblyFileVersion("2.0.0.0")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]

0 comments on commit abebe9a

Please sign in to comment.