Fix check update exception #1577

This commit is contained in:
ema
2025-05-11 03:39:24 +08:00
parent a95b050ae5
commit 8279c55526

View File

@@ -23,6 +23,15 @@ namespace QuickLook.Controls;
public class WebClientEx : WebClient
{
static WebClientEx()
{
#if NETFRAMEWORK
// Fix issue #1577
// System.Net.WebException: 'The request was aborted: Could not create SSL/TLS secure channel.'
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
#endif
}
public WebClientEx() : this(60 * 1000)
{
}