mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-10 09:15:47 +00:00
Merge branch 'develop'
This commit is contained in:
@@ -222,6 +222,10 @@
|
||||
<Reference Include="System" />
|
||||
<Code Type="Fragment" Language="cs">
|
||||
<![CDATA[
|
||||
// Workaround 'Could not create SSL/TLS secure channel' issue due to TLS 1.1 being
|
||||
// the default on earlier versions of .NET
|
||||
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
|
||||
// Download file
|
||||
new System.Net.WebClient().DownloadFile(Address, FileName);
|
||||
]]>
|
||||
</Code>
|
||||
|
||||
Reference in New Issue
Block a user