Merge pull request #1985 from uenz/fix/AboutController

Define security protocol
This commit is contained in:
Hylke Bons 2021-11-01 22:22:26 +01:00 committed by GitHub
commit 6ebda3a1d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,6 +61,8 @@ namespace SparkleShare {
UpdateLabelEvent ("Checking for updates…"); UpdateLabelEvent ("Checking for updates…");
Thread.Sleep (500); Thread.Sleep (500);
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
var web_client = new WebClient (); var web_client = new WebClient ();
var uri = new Uri ("https://www.sparkleshare.org/version"); var uri = new Uri ("https://www.sparkleshare.org/version");