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`