Browse Source

Fix .NET 4.7.2 on Win7 TLS compatibility (#2473)

tags/4.1.8.0
谭九鼎 Allen Zhu 5 years ago
parent
commit
9e953b33aa
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      shadowsocks-csharp/Program.cs

+ 4
- 0
shadowsocks-csharp/Program.cs View File

@@ -24,6 +24,10 @@ namespace Shadowsocks
[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


Loading…
Cancel
Save