From 5a155c11fd36eb6bb01ddb22b4dad7f0a7528355 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 12 Aug 2021 23:56:28 +0000 Subject: [PATCH] release 118 and some changes to 119 around auth / tls and properly display message on fail to test connect --- source/Plugins/AyaNova.Plugin.V8/Auth.cs | 3 +++ source/Plugins/AyaNova.Plugin.V8/V8.cs | 4 ++-- source/Plugins/AyaNova.Plugin.V8/util.cs | 9 +++++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/source/Plugins/AyaNova.Plugin.V8/Auth.cs b/source/Plugins/AyaNova.Plugin.V8/Auth.cs index 8b51381..fce9f97 100644 --- a/source/Plugins/AyaNova.Plugin.V8/Auth.cs +++ b/source/Plugins/AyaNova.Plugin.V8/Auth.cs @@ -63,6 +63,9 @@ namespace AyaNova.PlugIn.V8 private void Auth_Load(object sender, EventArgs e) { + //case 3875 + System.Net.ServicePointManager.SecurityProtocol = (System.Net.SecurityProtocolType)3072; + lblPreRelease.Text = util.PRE_RELEASE_VERSION_STRING; #if (DEBUG) edServerUrl.Text = "192.168.1.56:7575"; diff --git a/source/Plugins/AyaNova.Plugin.V8/V8.cs b/source/Plugins/AyaNova.Plugin.V8/V8.cs index 9015f27..86ebc88 100644 --- a/source/Plugins/AyaNova.Plugin.V8/V8.cs +++ b/source/Plugins/AyaNova.Plugin.V8/V8.cs @@ -35,7 +35,7 @@ namespace AyaNova.PlugIn.V8 public string PluginVersion { - get { return "7.6.1-alpha.118"; } + get { return "7.6.1-alpha.119"; } } public string About @@ -278,7 +278,7 @@ namespace AyaNova.PlugIn.V8 /// private async void DoExport() { - + //Show progress form ProgressForm progress = new ProgressForm(); progress.Show(); diff --git a/source/Plugins/AyaNova.Plugin.V8/util.cs b/source/Plugins/AyaNova.Plugin.V8/util.cs index 5fa34ce..4aa9e05 100644 --- a/source/Plugins/AyaNova.Plugin.V8/util.cs +++ b/source/Plugins/AyaNova.Plugin.V8/util.cs @@ -88,7 +88,7 @@ namespace AyaNova.PlugIn.V8 // client.Timeout = tsDefault; if (response.IsSuccessStatusCode) { - + return "OK"; } else @@ -96,7 +96,12 @@ namespace AyaNova.PlugIn.V8 return "Failed: " + response.StatusCode.ToString(); } } - catch { return "Failed"; } + catch (Exception ex) + { + while (ex.InnerException != null) + ex = ex.InnerException; + return "Failed exception: \n" + ex.Message; + } // return "failed";