OmegaChartのソースコードの保守
Revision | 4fee7d9fb204634e724e8369977d596daf7ca215 (tree) |
---|---|
Time | 2018-12-28 20:47:16 |
Author | panacoran <panacoran@user...> |
Commiter | panacoran |
Windows 7でTLS 1.1とTLS 1.2を使えるようにする
@@ -8,6 +8,7 @@ using System.Collections; | ||
8 | 8 | using System.Text; |
9 | 9 | using System.Diagnostics; |
10 | 10 | using System.IO; |
11 | +using System.Net; | |
11 | 12 | using System.Windows.Forms; |
12 | 13 | |
13 | 14 | using Travis.Storage; |
@@ -147,6 +148,7 @@ namespace Zanetti | ||
147 | 148 | |
148 | 149 | private static void InitEnv() { |
149 | 150 | Application.EnableVisualStyles(); |
151 | + ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11; | |
150 | 152 | |
151 | 153 | string dir = GetAppDir() + "data"; |
152 | 154 | if(!Directory.Exists(dir)) |