mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-03-29 02:16:11 +08:00
Fix check update exception #1577
This commit is contained in:
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user