diff --git a/Updater/MainWindow.xaml.cs b/Updater/MainWindow.xaml.cs index 51e9bc2..c9a8e3d 100644 --- a/Updater/MainWindow.xaml.cs +++ b/Updater/MainWindow.xaml.cs @@ -31,6 +31,7 @@ public MainWindow() InitializeComponent(); ServicePointManager.Expect100Continue = true; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; + ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; Loaded += MainWindow_LoadedAsync; } @@ -66,7 +67,8 @@ private async void MainWindow_LoadedAsync(object sender, RoutedEventArgs e) try { // First two expected items in manifest will be the new version and the starting executable. - latest = Version.Parse(await reader.ReadLineAsync()); + string v = await reader.ReadLineAsync(); + latest = Version.Parse(v); executable = await reader.ReadLineAsync(); } catch (Exception m)