From 4f305ef7c8fd51ff50ccab06475077ae6be48b46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E4=B9=9D?= <366193849@qq.com> Date: Fri, 5 Nov 2021 22:03:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4tls=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=98=BE=E5=BC=8F=E6=8C=87=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.Http/HttpClientHandler.cs | 2 -- README.md | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FastGithub.Http/HttpClientHandler.cs b/FastGithub.Http/HttpClientHandler.cs index 359b412..f7d4b3f 100644 --- a/FastGithub.Http/HttpClientHandler.cs +++ b/FastGithub.Http/HttpClientHandler.cs @@ -10,7 +10,6 @@ using System.Net.Http; using System.Net.Security; using System.Net.Sockets; using System.Runtime.CompilerServices; -using System.Security.Authentication; using System.Security.Cryptography.X509Certificates; using System.Threading; using System.Threading.Tasks; @@ -144,7 +143,6 @@ namespace FastGithub.Http await sslStream.AuthenticateAsClientAsync(new SslClientAuthenticationOptions { TargetHost = tlsSniValue.Value, - EnabledSslProtocols = SslProtocols.Tls12 | SslProtocols.Tls13, RemoteCertificateValidationCallback = ValidateServerCertificate }, cancellationToken); diff --git a/README.md b/README.md index 9c2084b..66284b3 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,8 @@ github加速神器,解决github打不开、用户头像无法加载、releases ### 2 部署方式 #### 2.1 windows-x64 * 双击运行FastGithub.UI.exe +* `fastgithub.exe start` // 以windows服务安装并启动 +* `fastgithub.exe stop` // 以windows服务卸载并删除 #### 2.2 linux-x64 * 执行`./fastgithub`