From abebe9a7efbb536dbffb17703e80192e95c9aa9f Mon Sep 17 00:00:00 2001 From: AyrA Date: Tue, 17 Mar 2020 01:00:35 +0100 Subject: [PATCH] Update TLS version --- MakeMKV/Program.cs | 4 +++- MakeMKV/Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/MakeMKV/Program.cs b/MakeMKV/Program.cs index 0020c84..0db013c 100644 --- a/MakeMKV/Program.cs +++ b/MakeMKV/Program.cs @@ -95,6 +95,7 @@ private static void ExecDir(string ExePath) /// MakeMKV Key (null on problems) 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 @@ -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) diff --git a/MakeMKV/Properties/AssemblyInfo.cs b/MakeMKV/Properties/AssemblyInfo.cs index 2b6d6d0..b46487d 100644 --- a/MakeMKV/Properties/AssemblyInfo.cs +++ b/MakeMKV/Properties/AssemblyInfo.cs @@ -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")]