Skip to content

Commit 8279c55

Browse files
committed
Fix check update exception #1577
1 parent a95b050 commit 8279c55

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

QuickLook/Controls/WebClientEx.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ namespace QuickLook.Controls;
2323

2424
public class WebClientEx : WebClient
2525
{
26+
static WebClientEx()
27+
{
28+
#if NETFRAMEWORK
29+
// Fix issue #1577
30+
// System.Net.WebException: 'The request was aborted: Could not create SSL/TLS secure channel.'
31+
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
32+
#endif
33+
}
34+
2635
public WebClientEx() : this(60 * 1000)
2736
{
2837
}

0 commit comments

Comments
 (0)