Skip to content

Commit

Permalink
Allow all certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
rex706 committed Dec 14, 2021
1 parent 8ac4951 commit e062551
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Updater/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public MainWindow()
InitializeComponent();
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
Loaded += MainWindow_LoadedAsync;
}

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e062551

Please sign in to comment.