Skip to content

Commit

Permalink
Fix .NET 4.7.2 on Win7 TLS compatibility (shadowsocks#2473)
Browse files Browse the repository at this point in the history
  • Loading branch information
imba-tjd authored and celeron533 committed Jul 23, 2019
1 parent 48506fa commit 9e953b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shadowsocks-csharp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ static class Program
[STAThread]
static void Main(string[] args)
{
// .NET Framework 4.7.2 on Win7 compatibility
System.Net.ServicePointManager.SecurityProtocol |=
System.Net.SecurityProtocolType.Tls | System.Net.SecurityProtocolType.Tls11 | System.Net.SecurityProtocolType.Tls12;

// store args for further use
Args = args;
// Check OS since we are using dual-mode socket
Expand Down

0 comments on commit 9e953b3

Please sign in to comment.