File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,11 @@ public static void InitLibrary( [NotNull] IEnumerable<string> rawArgs ) {
130
130
}
131
131
132
132
ServicePointManager . Expect100Continue = false ;
133
+ try {
134
+ ServicePointManager . SecurityProtocol = ( SecurityProtocolType ) ( 0xc0 | 0x300 | 0xc00 | 0x3000 ) ;
135
+ } catch ( Exception ex ) {
136
+ Logger . Log ( LogType . Error , "Could not force enable TLS 1.2/1.3: {0}" , ex ) ;
137
+ }
133
138
134
139
// try to parse arguments
135
140
foreach ( string arg in rawArgs ) {
@@ -480,7 +485,6 @@ static void DownloadResources() {
480
485
481
486
static void DownloadResource ( string url , string file ) {
482
487
ServicePointManager . Expect100Continue = true ;
483
- ServicePointManager . SecurityProtocol = ( SecurityProtocolType ) ( 0xc0 | 0x300 | 0xc00 | 0x3000 ) ;
484
488
if ( File . Exists ( file ) ) return ;
485
489
486
490
try {
You can’t perform that action at this time.
0 commit comments