(GarUpdate): set SecurityProtocol property.

This commit is contained in:
morkt 2019-01-28 19:16:39 +04:00
parent 3d7ffa7f24
commit 166f691d3a

View File

@ -44,6 +44,7 @@ namespace GARbro.GUI
private void InitUpdatesChecker ()
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
var update_url = App.Resources["UpdateUrl"] as Uri;
m_updater = new GarUpdate (this, update_url);
m_updater.CanExecuteChanged += (s, e) => CommandManager.InvalidateRequerySuggested();